From: phpbug at starurl dot com Operating system: Windows IIS6 PHP version: 5.2.12 PHP Bug Type: HTTP related Bug description: '200 OK' HTTP status despite PHP error
Description: ------------ My host runs PHP v5.2.12 (confirmed via phpversion) on IIS6 (Windows Server, unknown version). When a PHP error occurs (parse error, runtime error, etc), a "200 OK" HTTP status is returned, instead of the correct "500 Internal Server Error". This is despite claims in the change history for v5.2.4 that this issue was fixed: "Changed error handler to send HTTP 500 instead of blank page on PHP errors. (Dmitry, Andrei Nigmatulin)". This doesn't appear to be the case on IIS6 (monitored remotely via HTTP Spy). Reproduce code: --------------- <? x = y; // cause parse error ?> Expected result: ---------------- Parse error mesage and "500 Internal Server Error" HTTP status code. Actual result: -------------- Parse error mesage and "200 OK" HTTP status code -- Edit bug report at http://bugs.php.net/?id=50921&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50921&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50921&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50921&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50921&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50921&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50921&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50921&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50921&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50921&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50921&r=support Expected behavior: http://bugs.php.net/fix.php?id=50921&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50921&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50921&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50921&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50921&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50921&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50921&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50921&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50921&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50921&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50921&r=mysqlcfg
