无法使用try catch捕捉异常

sszxcss

[attach]2182[/attach]

[attach]2183[/attach]
按道理,try catch,异常应该走我自己的日志打印。但是并没有,还是在面板输出,日志里也没有。

3170 1 2
1个回答

six

php5 无法用try catch 捕获fatalError吧。
php7 可以捕获,但是不是捕获Exception,而是Error
try {
 
} catch (\Error $e) {
 
}

年代过于久远,无法发表回答
🔝