- 在方法调用解析中添加了变量表达式检查功能 - 实现了未定义变量错误提示机制 - 更新异常捕获解析以支持无变量名的捕获语法 - 添加了临时变量名生成器来处理匿名捕获变量 - 新增 try-catch-2 测试用例验证捕获语法兼容性pull/1/head
parent
3641cb3184
commit
b6e2741c31
3 changed files with 21 additions and 2 deletions
@ -0,0 +1,14 @@ |
||||
--TEST-- |
||||
try catch 2 |
||||
--FILE-- |
||||
<?php |
||||
function main() { |
||||
try { |
||||
throw new Exception('test error'); |
||||
} catch (Exception) { |
||||
echo "Caught exception\n"; |
||||
} |
||||
} |
||||
?> |
||||
--EXPECT-- |
||||
Caught exception |
||||
Loading…
Reference in new issue