ID: 26696 User updated by: saruman at northernhacking dot org Reported By: saruman at northernhacking dot org Status: Verified Bug Type: Reproducible crash Operating System: Linux RH9 PHP Version: 5.0.0b3 (beta3) New Comment:
Backtrace: Starting program: /usr/local/php5/bin/php /usr/local/apache/htdocs/API/Tests/testCrash.php [New Thread 1075549824 (LWP 23600)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1075549824 (LWP 23600)] zend_switch_free_handler (execute_data=0xbfffcfb0, op_array=0x401c31a4) at /usr/src/php-5.0.0b3/Zend/zend_execute.c:64 64 z->refcount--; (gdb) bt #0 zend_switch_free_handler (execute_data=0xbfffcfb0, op_array=0x401c31a4) at /usr/src/php-5.0.0b3/Zend/zend_execute.c:64 #1 0x081ab760 in execute (op_array=0x401c31a4) at /usr/src/php-5.0.0b3/Zend/zend_execute.c:1260 #2 0x081926b5 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php-5.0.0b3/Zend/zend.c:1048 #3 0x08163adb in php_execute_script (primary_file=0xbffff380) at /usr/src/php-5.0.0b3/main/main.c:1638 #4 0x081b5b60 in main (argc=2, argv=0xbffff404) at /usr/src/php-5.0.0b3/sapi/cli/php_cli.c:910 #5 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 Previous Comments: ------------------------------------------------------------------------ [2003-12-22 17:00:20] [EMAIL PROTECTED] Maybe related to bug #17997 ------------------------------------------------------------------------ [2003-12-22 16:50:56] saruman at northernhacking dot org More detailed and accurate summary ------------------------------------------------------------------------ [2003-12-22 15:47:34] saruman at northernhacking dot org Just reiterating that this is with beta3 ------------------------------------------------------------------------ [2003-12-22 14:51:55] saruman at northernhacking dot org case '?': is the culprit. ------------------------------------------------------------------------ [2003-12-22 14:38:45] saruman at northernhacking dot org Replacing the switch() block by echo like: for (...) { echo $str[$i]; } produces the expected behavior. The problem appears to be in the switch() or case statements. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26696 -- Edit this bug report at http://bugs.php.net/?id=26696&edit=1