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_008.phpt
2015-07-10 13:35:14 +02: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