From:             lungj at jademtech dot dyndns dot org
Operating system: MacOS X 10.3
PHP version:      5.0.0RC3
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Strange behaviour with exceptions

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 bug report at http://bugs.php.net/?id=28997&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28997&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28997&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28997&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28997&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28997&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28997&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28997&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28997&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28997&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28997&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28997&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28997&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28997&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28997&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28997&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28997&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28997&r=float

Reply via email to