php-src/Zend/tests/try/try_finally_013.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

24 lines
324 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();
?>
--EXPECT--
try
finally