php-src/Zend/tests/jump10.phpt
2020-02-03 22:52:20 +01:00

14 lines
242 B
PHP

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