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

23 lines
382 B
PHP

--TEST--
Try finally (with goto previous label)
--FILE--
<?php
function foo () {
try {
label:
echo "label";
try {
} finally {
goto label;
echo "dummy";
}
} catch (Exception $e) {
} finally {
}
}
foo();
?>
--EXPECTF--
Fatal error: jump out of a finally block is disallowed in %stry_finally_007.php on line %d