Hello all,
I would like to change the order of a line in zend_execute.h in PHP. I feel I may be suffering from this bug: http://bugs.php.net/bug.php?id=52678
The patch is simply to move 1 line of code down 1 line in zend_execute.h. Like so:
TO:
CHANGED: *p = NULL; // moved down 1 line
I thought I could make the change to the zend_execute.h file in my lang/php5/work directory then deinstall and reinstall. This did update the working zend_execute.h (located at /usr/local/include/php/Zend/zend_execute.h)
I still get segfaults, but the error line in the core dump doesn't change. That is: the error used to be in
after the change, I would expect the error to change to line 317 (since it moved up a line) but the error still reports on line 318. This leads me to believe that my method of patching zend_execute.h is incorrect. Can someone lead me in the right direction?
Thanks!
I would like to change the order of a line in zend_execute.h in PHP. I feel I may be suffering from this bug: http://bugs.php.net/bug.php?id=52678
The patch is simply to move 1 line of code down 1 line in zend_execute.h. Like so:
Code:
static inline void zend_vm_stack_clear_multiple(TSRMLS_D)
{
void **p = EG(argument_stack)->top - 1;
int delete_count = (int)(zend_uintptr_t) *p;
while (--delete_count>=0) {
zval *q = *(zval **)(--p);
*p = NULL;
zval_ptr_dtor(&q);
}
zend_vm_stack_free_int(p TSRMLS_CC);
}
Code:
static inline void zend_vm_stack_clear_multiple(TSRMLS_D)
{
void **p = EG(argument_stack)->top - 1;
int delete_count = (int)(zend_uintptr_t) *p;
while (--delete_count>=0) {
zval *q = *(zval **)(--p);
zval_ptr_dtor(&q);
*p = NULL;
}
zend_vm_stack_free_int(p TSRMLS_CC);
}
I thought I could make the change to the zend_execute.h file in my lang/php5/work directory then deinstall and reinstall. This did update the working zend_execute.h (located at /usr/local/include/php/Zend/zend_execute.h)
I still get segfaults, but the error line in the core dump doesn't change. That is: the error used to be in
Code:
zval_ptr_dtor on line 318
Thanks!