|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-19 08:56 UTC] pajoye@php.net
[2008-06-19 11:28 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 16:00:01 2025 UTC |
Description: ------------ Current 5_3 define() does not work at all. Reproduce code: --------------- <?php define('FOO', true); ?> Expected result: ---------------- constant defined Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x2aaf0db95f20 (LWP 2042)] 0x0000000000760da6 in _zval_ptr_dtor (zval_ptr=0x7fff9f1de628, __zend_filename=0x8d3228 "/home/cristian/php53/Zend/zend_builtin_functions.c", __zend_lineno=522) at /home/cristian/php53/Zend/zend.h:372 372 return --pz->refcount__gc; (gdb) bt #0 0x0000000000760da6 in _zval_ptr_dtor (zval_ptr=0x7fff9f1de628, __zend_filename=0x8d3228 "/home/cristian/php53/Zend/zend_builtin_functions.c", __zend_lineno=522) at /home/cristian/php53/Zend/zend.h:372 #1 0x00000000007886e4 in zif_define (ht=2, return_value=0xd41268, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0) at /home/cristian/php53/Zend/zend_builtin_functions.c:522 #2 0x00000000007a3753 in zend_do_fcall_common_helper_SPEC (execute_data=0x2aaf0b9de090) at /home/cristian/php53/Zend/zend_vm_execute.h:313 #3 0x00000000007a8e35 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x2aaf0b9de090) at /home/cristian/php53/Zend/zend_vm_execute.h:1527 #4 0x00000000007a27fd in execute (op_array=0xd40938) at /home/cristian/php53/Zend/zend_vm_execute.h:104 #5 0x0000000000774af3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/cristian/php53/Zend/zend.c:1195 #6 0x00000000006f7506 in php_execute_script (primary_file=0x7fff9f1e0dd0) at /home/cristian/php53/main/main.c:2080 #7 0x00000000008177f8 in main (argc=2, argv=0x7fff9f1e1028) at /home/cristian/php53/sapi/cli/php_cli.c:1139