xref: /PHP-5.5/Zend/tests/jump04.phpt (revision 610c7fbe)
1--TEST--
2jump 04: goto from loop (backward)
3--FILE--
4<?php
5$s = "X";
6echo "1: ok\n";
7L1: if ($s != "X") {
8	echo "4: ok\n";
9} else {
10	echo "2: ok\n";
11	while ($s != "XXX") {
12		echo "3: ok\n";
13		$s .= "X";
14		goto L1;
15		echo "bug\n";
16	}
17	echo "bug\n";
18}
19?>
20--EXPECT--
211: ok
222: ok
233: ok
244: ok
25