Permalink
Browse files

Make error reporting be always true, just HIDE errors in production.

Signed-off-by: Phil Sturgeon <email@philsturgeon.co.uk>
  • Loading branch information...
1 parent 662408a commit 906c611eabd5b7349dd62852a0db6a8c4fbef0e4 Phil Sturgeon committed May 29, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 index.php
View
@@ -49,16 +49,17 @@
* By default development will show errors but testing and live will hide them.
*/
+ error_reporting(E_ALL);
+
switch (ENVIRONMENT)
{
case PYRO_DEVELOPMENT:
- error_reporting(E_ALL);
- ini_set('display_errors', 1);
+ ini_set('display_errors', true);
break;
case PYRO_STAGING:
case PYRO_PRODUCTION:
- error_reporting(0);
+ ini_set('display_errors', false);
break;
default:
@@ -83,7 +84,7 @@
@ini_set('cgi.fix_pathinfo', 0);
// PHP 5.3 will BITCH without this
- if(ini_get('date.timezone') == '')
+ if (ini_get('date.timezone') == '')
{
date_default_timezone_set('UTC');
}

0 comments on commit 906c611

Please sign in to comment.