Skip to content

Instantly share code, notes, and snippets.

@souhaiebtar
Last active November 18, 2020 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souhaiebtar/d8f9cd6efb49c5381e663f7502f3b199 to your computer and use it in GitHub Desktop.
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
; 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