Edit report at https://bugs.php.net/bug.php?id=51861&edit=1
ID: 51861 Updated by: [email protected] Reported by: pim at lemonbit dot com Summary: While loop executes even though Exception has been thrown -Status: Feedback +Status: No Feedback Type: Bug Package: Unknown/Other Function Operating System: CentOS 5 PHP Version: 5.2.13 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2010-05-20 09:57:11] pim at lemonbit dot com We're seeing this on all our CentOS 5 servers with PHP 5.2.13, but not on our CentOS 4 machines though. ------------------------------------------------------------------------ [2010-05-20 08:20:35] [email protected] Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Bails out for me. ------------------------------------------------------------------------ [2010-05-19 17:46:26] pim at lemonbit dot com Description: ------------ Test script is pretty self-explanatory: even though an exception is thrown a while(true) loop gets exectued afterwards. Test script: --------------- <?php echo "Throw exception"; throw new Exception(); echo "This should not be printed, and is not."; while(true) { echo 'This should not be executed, but is!' . "\n"; } ?> Expected result: ---------------- We did not expected the while loop to execute. Actual result: -------------- The while loop executed. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=51861&edit=1
