mirror of
https://github.com/php/php-src.git
synced 2024-12-21 07:51:23 +08:00
60a29791e4
Refactor the implemention, make codes clear
22 lines
379 B
PHP
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
|