ID: 31828 User updated by: jon dot williams at namtec dot co dot uk Reported By: jon dot williams at namtec dot co dot uk -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Windows 2000 Server PHP Version: 5.0.3 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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
