1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00
Files
archived-php-src/Zend/tests/try/try_finally_013.phpt
2015-08-04 07:42:28 +03:00

26 lines
346 B
PHP

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