1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/try/try_finally_007.phpt
2018-10-14 12:07:20 -03:00

23 lines
381 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