mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
c1b01f7318
- Fixed bug #44913 (Segfault when using return in combination with nested loops and continue 2)
18 lines
353 B
PHP
18 lines
353 B
PHP
--TEST--
|
|
Bug #44913 (Segfault when using return in combination with nested loops and continue 2)
|
|
--FILE--
|
|
<?php
|
|
function something() {
|
|
foreach(array(1, 2) as $value) {
|
|
for($i = 0; $i < 1; $i++) {
|
|
continue 2;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
something();
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
ok
|