ID: 48428 Updated by: lbarn...@php.net Reported By: kopelke at gmail dot com -Status: Feedback +Status: Bogus Bug Type: Reproducible crash Operating System: Ubuntu 9.04 PHP Version: 5.3.0RC2 New Comment:
Previous Comments: ------------------------------------------------------------------------ [2009-05-29 11:41:11] lbarn...@php.net Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicate of bug #48228 ------------------------------------------------------------------------ [2009-05-29 10:35:47] kopelke at gmail dot com 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 this bug report at http://bugs.php.net/?id=48428&edit=1