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

15 lines
230 B
PHP

--TEST--
Try finally (without catch/finally block)
--FILE--
<?php
function foo () {
try {
echo "3";
}
}
foo();
?>
--EXPECTF--
Fatal error: Cannot use try without catch or finally in %stry_finally_004.php on line %d