php-src/Zend/tests/jump04.phpt
2012-10-10 10:27:49 +08:00

25 lines
295 B
PHP

--TEST--
jump 04: goto from loop (backward)
--FILE--
<?php
$s = "X";
echo "1: ok\n";
L1: if ($s != "X") {
echo "4: ok\n";
} else {
echo "2: ok\n";
while ($s != "XXX") {
echo "3: ok\n";
$s .= "X";
goto L1;
echo "bug\n";
}
echo "bug\n";
}
?>
--EXPECT--
1: ok
2: ok
3: ok
4: ok