|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-05 11:11 UTC] derick@php.net
[2007-05-05 11:43 UTC] tony2001@php.net
[2007-05-06 10:45 UTC] redfernpaul1 at mac dot com
[2007-05-06 22:09 UTC] php at fiddaman dot net
[2007-05-07 12:39 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Description: ------------ I upgraded from 5.2.1 to 5.2.2 and PHP started crashing with my application so I downloaded the latest snapshot and configured with --disable-all with the same result. Reproduce code: --------------- <?php $p = array('id'); print_r(each($p)); ?> Expected result: ---------------- Array ( [1] => id [value] => id [0] => 0 [key] => 0 ) Actual result: -------------- Starting program: /data/src/build/php5.2-200705050830/sapi/cli/php /test.php Program received signal SIGSEGV, Segmentation fault. 0x00000001001081b0 in _zval_ptr_dtor (zval_ptr=0x0) at /data/src/build/php5.2-200705050830/Zend/zend_execute_API.c:412 412 (*zval_ptr)->refcount--; (gdb) where #0 0x00000001001081b0 in _zval_ptr_dtor (zval_ptr=0x0) at /data/src/build/php5.2-200705050830/Zend/zend_execute_API.c:412 #1 0x0000000100147340 in zend_do_fcall_common_helper_SPEC ( execute_data=0xffffffff7fffeed8) at /data/src/build/php5.2-200705050830/Zend/zend_execute.h:155 #2 0x00000001001371d0 in execute (op_array=0xffffffff7ffff0b0) at /data/src/build/php5.2-200705050830/Zend/zend_vm_execute.h:92 #3 0x0000000100116b18 in zend_execute_scripts (type=3576176, retval=0x0, file_count=3457024) at /data/src/build/php5.2-200705050830/Zend/zend.c:1134 #4 0x00000001000cdac8 in php_execute_script (primary_file=0x0) at /data/src/build/php5.2-200705050830/main/main.c:1794 #5 0x00000001001a53f8 in main (argc=0, argv=0x0) at /data/src/build/php5.2-200705050830/sapi/cli/php_cli.c:1130