mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
25 lines
437 B
PHP
25 lines
437 B
PHP
--TEST--
|
|
Combination of foreach, finally and goto
|
|
--FILE--
|
|
<?php
|
|
foreach ([new stdClass] as $a) {
|
|
try {
|
|
foreach ([new stdClass] as $a) {
|
|
try {
|
|
foreach ([new stdClass] as $a) {
|
|
goto out;
|
|
}
|
|
} finally {
|
|
echo "finally1\n";
|
|
}
|
|
out: ;
|
|
}
|
|
} finally {
|
|
echo "finally2\n";
|
|
}
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
finally1
|
|
finally2
|