Search code examples
phpapacheerror-reporting

PHP Error Reporting stopped working


What are the possible reasons that my php error reporting would stop displaying to the browser? I must have changed something somewhere, but for the life of me I cant figure it out.

I have error_reporting set to E_ALL in a php script, doesnt seem to be anything in my php.ini or .htaccess that would be stopping it from displaying as well.

Where else can this be happening?


Solution

  • There is also display_errors which might be disabled. http://php.net/manual/en/errorfunc.configuration.php

    ini_set("display_errors", 1);
    error_reporting(E_ALL);
    

    Or use this as workaround for testing if any errors would come up:

    set_error_handler("var_dump");