php-src/Zend/tests/jump03.phpt

19 lines
201 B
Plaintext
Raw Normal View History

--TEST--
2006-03-14 19:20:19 +08:00
jump 03: goto inside control structures
--FILE--
<?php
do {
if (1) {
echo "1: ok\n";
2006-03-14 19:20:19 +08:00
goto L1;
} else {
echo "bug\n";
L1:
echo "2: ok\n";
}
} while (0);
?>
--EXPECT--
1: ok
2: ok