xref: /PHP-5.6/Zend/tests/bug44913.phpt (revision 1b317f15)
1--TEST--
2Bug #44913 (Segfault when using return in combination with nested loops and continue 2)
3--FILE--
4<?php
5function something() {
6        foreach(array(1, 2) as $value) {
7                for($i = 0; $i < 1; $i++) {
8                        continue 2;
9                }
10                return;
11        }
12}
13something();
14echo "ok\n";
15?>
16--EXPECT--
17ok
18