Skip to content

Commit 61f652a

Browse files
committed
Merge branch 'master' into merge-fastcgi
2 parents 231f059 + 35ba160 commit 61f652a

20 files changed

+195
-319
lines changed

Zend/tests/loop_free_on_return.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Break out of while loop that is followed by a return statement and inside a foreach loop
3+
--FILE--
4+
<?php
5+
6+
$a = [42];
7+
foreach ($a as $b) {
8+
while (1) {
9+
break 2;
10+
}
11+
return;
12+
}
13+
?>
14+
===DONE===
15+
--EXPECT--
16+
===DONE===

0 commit comments

Comments
 (0)