php-src/Zend/tests/goto_in_foreach.phpt
2015-08-04 07:42:28 +03:00

17 lines
143 B
PHP

--TEST--
goto inside foreach
--FILE--
<?php
foreach ([0] as $x) {
goto a;
a:
echo "loop\n";
}
echo "done\n";
?>
--EXPECT--
loop
done