summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-10-06 02:19:17 +0200
committerAndrey Andreev <narf@devilix.net>2014-10-06 02:19:17 +0200
commitd40d94ca5f304d8a084accd3162163026617a606 (patch)
tree39ca46a57cf767594358b9eff20d659cab7a1ef1 /index.php
parent286f9e1ae17188562d5f42c197709b547b90596e (diff)
E_DEPRECATED is not available in PHP 5.2
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/index.php b/index.php
index 80082111e..236c740c6 100755
--- a/index.php
+++ b/index.php
@@ -61,8 +61,15 @@ switch (ENVIRONMENT)
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: