summaryrefslogtreecommitdiff
path: root/Zend/tests/jump10.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-28 14:35:01 +0000
committerFelipe Pena <felipe@php.net>2008-03-28 14:35:01 +0000
commitf66f55edc5460c7105c43ede5b0d1d3d1bf2b8c8 (patch)
tree9749ebc166981924bf9a9c2112caaef47d34cd3d /Zend/tests/jump10.phpt
parent9d9468e9f41233f60e2720badfac088e43c26566 (diff)
downloadphp-git-f66f55edc5460c7105c43ede5b0d1d3d1bf2b8c8.tar.gz
MFH: Implemented "jump label" operator (limited "goto")
[DOC]
Diffstat (limited to 'Zend/tests/jump10.phpt')
-rwxr-xr-xZend/tests/jump10.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/jump10.phpt b/Zend/tests/jump10.phpt
new file mode 100755
index 0000000000..67206a29ae
--- /dev/null
+++ b/Zend/tests/jump10.phpt
@@ -0,0 +1,13 @@
+--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