mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
60a29791e4
Refactor the implemention, make codes clear
24 lines
447 B
PHP
24 lines
447 B
PHP
--TEST--
|
|
Try finally (with 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
|