php-src/Zend/tests/jump13.phpt
2008-03-28 14:35:01 +00:00

26 lines
312 B
PHP

--TEST--
jump 10: goto with try blocks
--FILE--
<?php
goto a;
e: return;
try {
a: print 1;
goto b;
try {
b: print 2;
goto c;
}
catch(Exception $e) {
c: print 3;
goto d;
}
}
catch(Exception $e) {
d: print 4;
goto e;
}
?>
--EXPECT--
1234