简体   繁体   中英

php.ini display_errors = Off but still showing errors

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.

PS: 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM