TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
442 B

--TEST--
finally runs before break leaves catch block
--FILE--
<?php
function main(): void
{
for ($i = 0; $i < 2; $i++) {
try {
echo "try:$i\n";
throw new RuntimeException('stop');
} catch (RuntimeException $e) {
echo "catch:$i\n";
break;
} finally {
echo "finally:$i\n";
}
}
echo "done\n";
}
?>
--EXPECT--
try:0
catch:0
finally:0
done