ID: 31828
Updated by: [EMAIL PROTECTED]
Reported By: jon dot williams at namtec dot co dot uk
-Status: Open
+Status: Verified
Bug Type: Zend Engine 2 problem
-Operating System: Windows 2000 Server
+Operating System: *
-PHP Version: 5.0.3
+PHP Version: 5CVS-2005-02-28
New Comment:
See also bug #32080
Previous Comments:
------------------------------------------------------------------------
[2005-02-03 14:21:59] [EMAIL PROTECTED]
Oh, that was really useful hint, thanks.
Here is the bt:
0x0824fc6e in zend_get_class_entry (zobject=0x84d683c) at
/home/dev/php-src_5_0/Zend/zend_API.c:204
204 if (Z_OBJ_HT_P(zobject)->get_class_entry) {
(gdb) bt
#0 0x0824fc6e in zend_get_class_entry (zobject=0x84d683c) at
/home/dev/php-src_5_0/Zend/zend_API.c:204
#1 0x0827acc1 in zend_assign_to_variable (result=0x84df744,
op1=0x84df758, op2=0x84df76c, value=0x84d683c, type=4,
Ts=0xbfffb310) at /home/dev/php-src_5_0/Zend/zend_execute.c:600
#2 0x0827445d in zend_assign_handler (execute_data=0xbfffd410,
opline=0x84df740, op_array=0x84d643c)
at /home/dev/php-src_5_0/Zend/zend_execute.c:2252
#3 0x082723c8 in execute (op_array=0x84d643c) at
/home/dev/php-src_5_0/Zend/zend_execute.c:1406
#4 0x0824f4ff in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/dev/php-src_5_0/Zend/zend.c:1068
#5 0x08210619 in php_execute_script (primary_file=0xbffff810) at
/home/dev/php-src_5_0/main/main.c:1630
#6 0x0827dd59 in main (argc=2, argv=0xbffff8a4) at
/home/dev/php-src_5_0/sapi/cli/php_cli.c:943
#7 0x420157a4 in __libc_start_main () from /lib/tls/libc.so.6
------------------------------------------------------------------------
[2005-02-03 14:14:21] jon dot williams at namtec dot co dot uk
Okay, more research - I reverted back to the dist php.ini file and the
crash no longer happens. Regressing through the changes I had made
I've discovered that this crash only happens if PHP 4.x compatibility
is enabled. i.e.
zend.ze1_compatibility_mode = On
------------------------------------------------------------------------
[2005-02-03 13:32:40] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Can't reproduce it under Linux with latest snapshot.
------------------------------------------------------------------------
[2005-02-03 13:25:41] jon dot williams at namtec dot co dot uk
Description:
------------
Operating System: Windows 2000 Server
PHP Version: 5.0.3 and binary snapshot 200502030930
Apache versions: 2.0.52 and 1.3.31
I am using running the open source CMS system Mambo with the com_events
component. In some circumstances the code in this component would crash
my installation.
After some tracing I narrowed the crash down to a small piece of code
whereby the first element in a singleton array is re-assigned to a
variable name the same as the originating array(See code example).
By reassigning the array element to a new different variable name this
crash can be avoided.
Reproduce code:
---------------
<?php
$o->id = 77;
$o->name = "Aerospace";
$a[] = $o;
$a = $a[0];
print_r($a);
?>
Expected result:
----------------
stdClass Object ( [id] => 77 [name] => Aerospace )
Actual result:
--------------
404 page not found error and Apache logs show a crash where Apache is
forced to restart.
In Apache 2
child process exited with status 3221225477 -- Restarting.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31828&edit=1