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.
 
 

24 lines
380 B

--TEST--
Try finally (basic test)
--FILE--
<?php
function foo ($a) {
try {
throw new Exception("ex");
} finally {
var_dump($a);
}
}
function main() {
foo("finally");
}
?>
--EXPECTF--
string(7) "finally"
Fatal error: Uncaught Exception: ex %s
Stack trace:
#0 %stry_finally_001.php(%d): foo('finally')
#1 {main}
thrown in %stry_finally_001.php on line %d