Last active
March 8, 2022 18:31
-
-
Save guimadaleno/10569421 to your computer and use it in GitHub Desktop.
Make PHP show or hide parse errors, notices and warnings
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
<?php | |
# Exibe erros de parsing, exceto notices e warnings | |
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); | |
# Exibe erros de parsing e warnings, exceto notices | |
error_reporting(E_ALL ^ E_NOTICE); | |
# Exibe erros de parsing e notices, exceto warnings | |
error_reporting(E_ALL ^ E_WARNING); | |
# Exibe todos os erros, notices e warnings | |
error_reporting(E_ALL); | |
# Esconde todos os erros, notices e warnings | |
error_reporting(0); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment