ID:               28997
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jonathan dot lung at utoronto dot ca
-Status:           Open
+Status:           Bogus
 Bug Type:         Zend Engine 2 problem
 Operating System: MacOS X 10.3
 PHP Version:      5.0.0RC3
 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.




Previous Comments:
------------------------------------------------------------------------

[2004-07-02 21:05:23] jonathan dot lung at utoronto dot ca

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.

------------------------------------------------------------------------

[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

Reply via email to