mirror of
https://github.com/php/php-src.git
synced 2024-09-27 12:57:26 +00:00
24 lines
447 B
Plaintext
24 lines
447 B
Plaintext
|
--TEST--
|
||
|
Finally with jmp (for continue)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function foo () {
|
||
|
for($i = 0; $i < 5; $i++) {
|
||
|
do {
|
||
|
try {
|
||
|
try {
|
||
|
} finally {
|
||
|
}
|
||
|
} catch (Exception $e) {
|
||
|
} finally {
|
||
|
continue;
|
||
|
}
|
||
|
} while (0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
foo();
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: jump out of a finally block is disallowed in %stry_finally_009.php on line %d
|