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

14 lines
228 B
PHP

--TEST--
jump 09: goto into switch (backward)
--FILE--
<?php
switch (0) {
case 1:
L1: echo "bug\n";
break;
}
goto L1;
?>
--EXPECTF--
Fatal error: 'goto' into loop or switch statement is disallowed in %sjump09.php on line 7