Skip to content

Instantly share code, notes, and snippets.

@dandelionmood
Created March 20, 2010 16:55
Show Gist options
  • Save dandelionmood/338766 to your computer and use it in GitHub Desktop.
Save dandelionmood/338766 to your computer and use it in GitHub Desktop.
<?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