Last active
November 18, 2020 10:15
-
-
Save souhaiebtar/d8f9cd6efb49c5381e663f7502f3b199 to your computer and use it in GitHub Desktop.
[disable showing error and warning in php] disable showing error and warning in php #php #errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; add those lines to php.ini file, you can find it's location using command `php --ini | grep -i php.ini` | |
; if you are using ondrej/php repo, you should add it to /etc/php/7.*/fpm/php.ini | |
error_reporting = E_ALL & ~E_NOTICE | |
error_reporting = E_ALL & ~E_NOTICE | E_STRICT | |
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ER… _ERROR | |
error_reporting = E_ALL & ~E_NOTICE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment