1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00
Files
archived-php-src/Zend/tests/try/try_finally_006.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

27 lines
335 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();
?>
--EXPECT--
label
okey