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

12 lines
205 B
PHP

--TEST--
jump 08: goto into loop (forward)
--FILE--
<?php
goto L1;
while (0) {
L1: echo "bug\n";
}
?>
--EXPECTF--
Fatal error: 'goto' into loop or switch statement is disallowed in %sjump08.php on line 2