From: kopelke at gmail dot com Operating system: Ubuntu 9.04 PHP version: 5.3.0RC2 PHP Bug Type: Output Control Bug description: Blank page output with Exceptions
Description: ------------ First, I don't think this is PHP 5.3 RC related or Linux related, but at the moment I have no chace to check on XP with 5.2. Neither did I know which category it should be in. Please check this, thanks. It took a while to find this. The real problem is shown in the reproduce code section. This code works, it calls x() which will throw an Exception and output "ERROR" <?php try { function x() { throw new Exception("ERROR"); } (x()); } catch(Exception $e) { echo($e -> getMessage()); } ?> Reproduce code: --------------- <?php try { function x() { throw new Exception("ERROR"); } x(x()); } catch(Exception $e) { echo($e -> getMessage()); } ?> Expected result: ---------------- Expected would that the inner x() will throw the Exception, the outer one would be skipped and I get the "ERROR" string from the Exception in the catch Actual result: -------------- a blank page. -- Edit bug report at http://bugs.php.net/?id=48428&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48428&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48428&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48428&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48428&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48428&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48428&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48428&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48428&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48428&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48428&r=support Expected behavior: http://bugs.php.net/fix.php?id=48428&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48428&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48428&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48428&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48428&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48428&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48428&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48428&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48428&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48428&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48428&r=mysqlcfg