php-src/Zend/tests/try_finally_008.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

22 lines
379 B
PHP

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