com php-src: one more test from ef1b588f6a39bcc2c0d5fad9f2094bb011aeaf0b: Zend/tests/jump15.phpt
| From: | Anatol Belski | Date: | Tue, 21 Jul 2015 12:52:12 +0000 |
| Subject: | com php-src: one more test from ef1b588f6a39bcc2c0d5fad9f2094bb011aeaf0b: Zend/tests/jump15.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88096@lists.php.net to get a copy of this message | ||
Commit: 735a7c6a560101b7c0700719664f64d9fed48557
Author: Anatol Belski <ab@php.net> Tue, 21 Jul 2015 05:52:12 -0700
Parents: 94e7c770babccfab678211fb9cc8a2e5db8e6d33
Branches: PHP-7.0.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=735a7c6a560101b7c0700719664f64d9fed48557
Log:
one more test from ef1b588f6a39bcc2c0d5fad9f2094bb011aeaf0b
Changed paths:
A Zend/tests/jump15.phpt
Diff:
diff --git a/Zend/tests/jump15.phpt b/Zend/tests/jump15.phpt
new file mode 100644
index 0000000..456d277
--- /dev/null
+++ b/Zend/tests/jump15.phpt
@@ -0,0 +1,29 @@
+--TEST--
+jump 15: goto from loop (forward)
+--FILE--
+<?php
+$ar = array("1","2","3");
+foreach ($ar as $val) {
+ switch ($val) {
+ case "1":
+ echo "1: ok\n";
+ break;
+ case "2":
+ echo "2: ok\n";
+ goto L1;
+ case "3":
+ echo "bug\n";
+ break;
+ }
+}
+echo "bug\n";
+L1:
+try {
+ echo "3: ok\n";
+} finally {
+}
+?>
+--EXPECT--
+1: ok
+2: ok
+3: ok