duandingqi9442 2017-02-16 16:26
浏览 250
已采纳

php.ini error_reporting设置为E_ALL但不起作用

In my php.ini file on wampserver I have the following lines set:

error_reporting = E_ALL
display_errors = On

Yet, I have to actually call error_reporting(E_ALL) in my script in order for it to actually show the errors.

Why is this happening? I'm getting to my php.ini through the wampserver icon -> php -> php.ini

  • 写回答

2条回答 默认 最新

  • dongmeng4742 2017-02-16 17:48
    关注

    I was using the @ suppression modifier in front of call_user_func_array in my Router front-end controller class which was resetting error_reporting to 0.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?