From: andy at boeckler dot org Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Output Control Bug description: E_STRICT-warnings throws HTTP 500 error when display_errors is off w/o ob_flush
Description: ------------ I'm getting Ajax-Request-Failures since PHP5 throws HTTP-500 Errors back. This was not the case before upgrading from PHP4. This is annoying: * E_STRICT are filtered out * when display_errors is ON, the request is OK! * display_errors ON is no option on a productionserver It only works, when ob_flush() is called before exit() (see staticFunc2) Reproduce code: --------------- <?php error_reporting(E_ALL & ~E_NOTICE); // NO E_STRICT is in here ini_set('display_errors', 'off'); //ini_set('display_errors', 'on'); class Test { public staticFunc() { echo 'boo'; exit(); } public staticFunc2() { echo 'boo'; ob_flush(); exit(); } } Test::staticFunc(); ?> Expected result: ---------------- HTTP 200 Actual result: -------------- HTTP 500, w/o ob_flush() when display_errors is off HTTP 200, w/o ob_flush() when display_errors is ON HTTP 200, with ob_flush() -- Edit bug report at http://bugs.php.net/?id=45592&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45592&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45592&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45592&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45592&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45592&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45592&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45592&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45592&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45592&r=support Expected behavior: http://bugs.php.net/fix.php?id=45592&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45592&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45592&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45592&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45592&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45592&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45592&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45592&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45592&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45592&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45592&r=mysqlcfg