ITPub博客

首页 > IT职业 > IT图书 > php错误处理

php错误处理

IT图书 作者:duanhao 时间:2021-09-09 09:17:47 0 删除 编辑

1.$php_errormsg能保存最后一条错误信息,包括@抑制的错误消息

2.trigger_error触发对应错误等级的消息

3.error_log发送指定错误消息

4.error_reporting设置错误报告级别

5.set_error_handler()指定错误处理函数,处理函数参数为($errno , $errstr ,$errfile ,$errline,array $errcontext)

6.set_exception_handler()指定处理exception函数,处理函数参数为(Exception $ex)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1343/viewspace-2809313/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-09-06

  • 博文量
    739
  • 访问量
    25588