ID: 28997
User updated by: jonathan dot lung at utoronto dot ca
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:
if (true) {
try {
throw new Exception("Blah");
} catch (Exception $e) {
echo $e->getMessage();
}
}
also does not behave as expected. This causes an
"uncaught exception" error to occur. (Both problems
listed occur from running from command line in
interactive mode). The above works if it is further
surrounded by a try/catch block.
Previous Comments:
------------------------------------------------------------------------
[2004-07-02 20:07:30] jonathan dot lung at utoronto dot ca
_
------------------------------------------------------------------------
[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