#32647 [NEW]: Register_shutdown_function can crash apache2
| From: | interghost at crovortex dot com | Date: | Sat, 09 Apr 2005 19:05:44 +0000 |
| Subject: | #32647 [NEW]: Register_shutdown_function can crash apache2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76577@lists.php.net to get a copy of this message | ||
From: interghost at crovortex dot com
Operating system: Windows XP
PHP version: 5.0.4
PHP Bug Type: Reproducible crash
Bug description: Register_shutdown_function can crash apache2
Description:
------------
When calling register_shutdown_function with an array argument in which
the first index is an unset variable or if the first index is numeric 0
and the second any string variable apache2 crashes...I've tested it on
Apache v2.0.52 and v2.0.53.
In the server's error log it says:
[Sat Apr 09 20:37:19 2005] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Sat Apr 09 20:37:19 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4
configured -- resuming normal operations
[Sat Apr 09 20:37:19 2005] [notice] Server built: Feb 10 2005 06:11:34
[Sat Apr 09 20:37:19 2005] [notice] Parent: Created child process 3900
[Sat Apr 09 20:37:19 2005] [notice] Child 3900: Child process is running
[Sat Apr 09 20:37:19 2005] [notice] Child 3900: Acquired the start mutex.
[Sat Apr 09 20:37:19 2005] [notice] Child 3900: Starting 250 worker
threads.
Reproduce code:
---------------
unset($obj);
register_shutdown_function(array($obj,""));
register_shutdown_function(array($obj,"some string"));
register_shutdown_function(array(0,""));
register_shutdown_function(array(0,"some string"));
--
Edit bug report at http://bugs.php.net/?id=32647&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32647&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32647&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32647&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32647&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32647&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32647&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32647&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32647&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32647&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32647&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32647&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32647&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32647&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32647&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32647&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32647&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32647&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32647&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32647&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32647&r=mysqlcfg