mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
24 lines
324 B
PHP
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
|