summaryrefslogtreecommitdiff
path: root/Zend/tests/loop_free_on_return.phpt
blob: 525a50955a19526e2ae17f0e34bd5061e24930cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Break out of while loop that is followed by a return statement and inside a foreach loop
--FILE--
<?php

$a = [42];
foreach ($a as $b) {
    while (1) {
        break 2;
    }
    return;
}
?>
===DONE===
--EXPECT--
===DONE===