php-src/Zend/tests/try_finally_009.phpt
Xinchen Hui 60a29791e4 Fixed bug that jmp in try block jmp over finally block
Refactor the implemention,  make codes clear
2012-08-22 18:32:03 +08:00

24 lines
447 B
PHP

--TEST--
Try finally (with for continue)
--FILE--
<?php
function foo () {
for($i = 0; $i < 5; $i++) {
do {
try {
try {
} finally {
}
} catch (Exception $e) {
} finally {
continue;
}
} while (0);
}
}
foo();
?>
--EXPECTF--
Fatal error: jump out of a finally block is disallowed in %stry_finally_009.php on line %d