| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2008-10-16 03:20 UTC] anton at samba dot org
  [2008-10-16 05:54 UTC] anton at samba dot org
  [2008-10-16 09:35 UTC] [email protected]
  [2010-07-25 02:17 UTC] mabi at gentoo dot org
  [2013-03-19 18:51 UTC] [email protected]
  [2013-03-19 19:24 UTC] [email protected]
  [2013-08-22 07:34 UTC] [email protected]
  [2013-08-22 09:06 UTC] [email protected]
  [2013-08-22 09:06 UTC] [email protected]
 
-Status: Assigned
+Status: Closed
  [2013-08-22 09:10 UTC] [email protected]
  [2013-11-17 09:30 UTC] [email protected]
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 01:00:02 2025 UTC | 
Description: ------------ A recent checkout of gcc4.4 miscompiles php on PowerPC64. The following function reads from p via long * and stores to p via void * which violates aliasing rules: static inline void zend_ptr_stack_clear_multiple(TSRMLS_D) { void **p = EG(argument_stack).top_element-2; int delete_count = (int)(zend_uintptr_t) *p; EG(argument_stack).top -= (delete_count+2); while (--delete_count>=0) { zval *q = *(zval **)(--p); *p = NULL; zval_ptr_dtor(&q); } EG(argument_stack).top_element = p; } More details can be found at: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37824 We can remove the (zval **) cast so that we read and write via void *p and fix the aliasing issue. I will attach a patch.