对于Apache Web服务器,我们可以通过php.ini
中的error_reporting
条目调整错误报告。调整类似于错误报告的PHP异常报告
是否有异常报告的类似设置?
我的下面的代码显示error_reporting
不会影响exception throw
命令。
function actionTestThrow() {
error_reporting(null);
$i=122;
throw new Exception('abb');
$i=344;
echo $i;
}