php-src/Zend/tests/jump02.phpt

17 lines
147 B
Plaintext
Raw Normal View History

--TEST--
2006-03-14 19:20:19 +08:00
jump 02: goto forward
--FILE--
<?php
$n = 1;
L1:
2006-03-14 19:20:19 +08:00
if ($n > 3) goto L2;
echo "$n: ok\n";
$n++;
2006-03-14 19:20:19 +08:00
goto L1;
L2:
?>
--EXPECT--
1: ok
2: ok
3: ok