#28997 [Opn]: Strange behaviour with exceptions

From: Date: Fri, 02 Jul 2004 18:07:30 +0000
Subject: #28997 [Opn]: Strange behaviour with exceptions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61632@lists.php.net to get a copy of this message
ID: 28997 User updated by: jonathan dot lung at utoronto dot ca -Reported By: lungj at jademtech dot dyndns dot org +Reported By: jonathan dot lung at utoronto dot ca Status: Open Bug Type: Zend Engine 2 problem Operating System: MacOS X 10.3 PHP Version: 5.0.0RC3 New Comment: _ Previous Comments: ------------------------------------------------------------------------ [2004-07-02 20:06:21] jonathan dot lung at utoronto dot ca Description: ------------ The exception handler seems to behave strangely. Reproduce code: --------------- <? echo "loopy"; try { echo " code\n"; } catch (Exception $e) { echo "Really."; } ?> Expected result: ---------------- The words "loopy code\n" to be printed out. Actual result: -------------- The words "loopy code\n" run in a continuous loop (yes, even the word "loopy"). This problem seems to go away with the following: <? if (true) { echo "loopy"; try { echo " code\n"; } catch (Exception $e) { echo "Really."; } } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28997&edit=1

« previous php.bugs (#61632) next »