您好,欢迎访问一九零五行业门户网

php 普通错误和致命错误捕获及处理

无详细内容 无 ?php//禁止错误输出error_reporting(0);//设置错误处理器set_error_handler('errorhandler');register_shutdown_function('fatalerrorhandler');class test{public function index(){//这里发生一个警告错误,出发errorhandler echo $undefined
index(); //发生致命错误,脚本停止运行触发 fatalerrorhandler $test = new tesdt(); $test->index();
其它类似信息

推荐信息