Created
March 20, 2010 16:55
-
-
Save dandelionmood/338766 to your computer and use it in GitHub Desktop.
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 | |
// Suivant l'environnement dans lequel nous nous trouvons | |
// on affichera ou non les erreurs qui se produisent. | |
switch(__ENVIRONNEMENT__) | |
{ | |
case 'dev': | |
case 'preprod': | |
error_reporting(E_ALL); | |
break; | |
case 'prod': | |
error_reporting(0); | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment