I want to disable all php-warnings, errors, notices, etc. so ajax-requests don´t fail when there is an error in a script (in dev-mode).
In php.ini I´ve set display_errors = Off
, and in phpinfo()
display_errors shows as off (both local & global). But in my scripts I still get error-warnings. I already checked .htaccess but can´t figure out why error´s still get shown. Any help or hint?
I´m running PHP 5.6.1 using MAMP on a Mac 10.10 if that helps.
P.S: I don´t want to turn off error_reporting
because I still want to get the errors in my log
There could be a call to change that setting in one of the scripts you run. Most likley the case. Also check if a htaccess file alters any settings which could also be the case.