From e323b09b84a76f84eb06d7183004f46e55bb4ddb Mon Sep 17 00:00:00 2001
From: Jared Hancock <gravydish@gmail.com>
Date: Mon, 18 Jun 2012 17:40:25 -0500
Subject: [PATCH] Remove strict and deprecation warnings from error reporting

---
 main.inc.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/main.inc.php b/main.inc.php
index 8421be6ce..8a3390f2d 100644
--- a/main.inc.php
+++ b/main.inc.php
@@ -38,7 +38,12 @@
     //ini_set('session.cookie_path','/osticket/');
 
     #Error reporting...Good idea to ENABLE error reporting to a file. i.e display_errors should be set to false
-    error_reporting(E_ALL ^ E_NOTICE); //Respect whatever is set in php.ini (sysadmin knows better??)
+    $error_reporting = E_ALL & ~E_NOTICE;
+    if (defined('E_STRICT')) # 5.4.0
+        $error_reporting &= ~E_STRICT;
+    if (defined('E_DEPRECATED')) # 5.3.0
+        $error_reporting &= ~(E_DEPRECATED | E_USER_DEPRECATED);
+    error_reporting($error_reporting); //Respect whatever is set in php.ini (sysadmin knows better??)
     #Don't display errors
     ini_set('display_errors',1);
     ini_set('display_startup_errors',1);
-- 
GitLab