mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
60a29791e4
Refactor the implemention, make codes clear
23 lines
382 B
PHP
23 lines
382 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
|