php-src/Zend/tests/try_finally_006.phpt
Xinchen Hui 60a29791e4 Fixed bug that jmp in try block jmp over finally block
Refactor the implemention,  make codes clear
2012-08-22 18:32:03 +08:00

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