bug44913.phpt 353 B

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