1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00
Files
archived-php-src/Zend/tests/try/try_finally_014.phpt
2015-08-04 07:42:28 +03:00

28 lines
440 B
PHP

--TEST--
Break 2 in try and return in finally inside nested loop
--FILE--
<?php
function foo() {
$array = [1, 2, $n = 3];
foreach ($array as $value) {
foreach ($array as $value) {
try {
echo "try\n";
break 2;
} finally {
echo "finally\n";
return;
}
}
}
}
foo();
?>
===DONE===
--EXPECT--
try
finally
===DONE===