php 的 mysql 函数先于 php 的 try catch 结构出生

解决方案 »

  1.   

    当错误发生时,php默认抛出错误而不是异常。
    查阅set_error_handler 的相关内容
      

  2.   

    2楼说php 的 mysql 函数先于 php 的 try catch 结构出生,那么可以用3楼的方法set_error_handler 监控错误吗
      

  3.   

    2楼说php 的 mysql 函数先于 php 的 try catch 结构出生,那么可以用3楼的方法set_error_handler 监控错误吗