From: jrivett at uvic dot ca Operating system: Windows 2000 SP4 PHP version: 4.4.1 PHP Bug Type: Apache2 related Bug description: Apache2 2.0.55 child restarts if ErrorDocument is used
Description: ------------ Upgraded PHP from 4.4.0 to 4.4.1 on Nov 3/05 and immediately started seeing these in the Apache error log: "[notice] Parent: child process exited with status 3221225477 -- Restarting." Every time this happens the server becomes unresponsive for a while. The trigger is when a client tries to browse to a page that doesn't exist: "[error] [client xxx.xxx.xxx.xxx] File does not exist: D:/htdocs/public/hownote". We use a custom error 404 page, configured using Apache's ErrorDocument directive. The page contains PHP code. Commenting out the ErrorDocument directive resolves the problem. Bug #35056 looks like the same problem, but it was reported in PHP 4.4.1RC1, fixed in CVS and supposedly fixed in 4.4.1. Bug #33987 looks like the same problem as well but it was reported on PHP 5.1. Bug #21074 is similar. Reproduce code: --------------- <?php require ($_SERVER["DOCUMENT_ROOT"]."/includes/functions.php"); $print_home_link = true; print_header (); ?> <!-- user message here --> <?php print_footer(); ?> URL: http://helpdesk.uvic.ca Expected result: ---------------- The custom error 404 page should appear on the client. Apache should not restart. Actual result: -------------- On the client end, the session usually appears to hang. In any case, the error 404 page does not appear. On the server end, about every other instance causes the child to restart. -- Edit bug report at http://bugs.php.net/?id=35446&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35446&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35446&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35446&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35446&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35446&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35446&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35446&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35446&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35446&r=support Expected behavior: http://bugs.php.net/fix.php?id=35446&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35446&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35446&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35446&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35446&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35446&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35446&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35446&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35446&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35446&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35446&r=mysqlcfg