Edit report at http://bugs.php.net/bug.php?id=51861&edit=1
ID: 51861 Updated by: m...@php.net Reported by: pim at lemonbit dot com Summary: While loop executes even though Exception has been thrown -Status: Open +Status: Feedback Type: Bug Package: Unknown/Other Function Operating System: CentOS 5 PHP Version: 5.2.13 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 http://bugs.php.net/bug.php?id=51861&edit=1