From: crrodriguez at suse dot de
Operating system: linux
PHP version: 5.3CVS-2008-06-19 (CVS)
PHP Bug Type: Reproducible crash
Bug description: define() crashes
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
--
Edit bug report at http://bugs.php.net/?id=45307&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45307&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45307&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45307&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45307&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45307&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45307&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45307&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45307&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45307&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45307&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45307&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45307&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45307&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45307&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45307&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45307&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45307&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45307&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45307&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45307&r=mysqlcfg