E_DEPRECATED is not available in PHP 5.2
diff --git a/index.php b/index.php
index 8008211..236c740 100755
--- a/index.php
+++ b/index.php
@@ -61,8 +61,15 @@
case 'testing':
case 'production':
- error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
ini_set('display_errors', 0);
+ if (version_compare(PHP_VERSION, '5.3', '>='))
+ {
+ error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
+ }
+ else
+ {
+ error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
+ }
break;
default: