diff options
Diffstat (limited to 'Zend/tests/jump08.phpt')
-rw-r--r-- | Zend/tests/jump08.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/jump08.phpt b/Zend/tests/jump08.phpt new file mode 100644 index 0000000..25a211c --- /dev/null +++ b/Zend/tests/jump08.phpt @@ -0,0 +1,11 @@ +--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 |