Cannot get php display_errors enabled

前端 未结 8 1507
谎友^
谎友^ 2020-12-29 08:49

Hey i know there are a few posts regarding this topic and i have scoured them all!

I cannot not enable the display_errors setting in php no matter what i do!!!

8条回答
  •  忘掉有多难
    2020-12-29 09:25

    In my case, what I had to do is

    set_error_handler(NULL);
    
    restore_error_handler();
    

    I had defined a custom error handler, which entirely bypassed the default PHP error handler. Yet, I did not want to remove my custom error error handler permanently. So, I used set_error_handler(NULL); to reset the error_handler to its default value. I used restore_error_handler(); to get back my original custom error_handler.

提交回复
热议问题