mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
60a29791e4
Refactor the implemention, make codes clear
27 lines
336 B
PHP
27 lines
336 B
PHP
--TEST--
|
|
Try finally (with near goto)
|
|
--FILE--
|
|
<?php
|
|
function foo () {
|
|
$jmp = 1;
|
|
try {
|
|
} finally {
|
|
previous:
|
|
if ($jmp) {
|
|
goto label;
|
|
echo "dummy";
|
|
label:
|
|
echo "label\n";
|
|
$jmp = 0;
|
|
goto previous;
|
|
}
|
|
echo "okey";
|
|
}
|
|
}
|
|
|
|
foo();
|
|
?>
|
|
--EXPECTF--
|
|
label
|
|
okey
|