Search code examples
phpwampwampserver

php.ini error_reporting set to E_ALL but not working


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


Solution

  • 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.