From 10b09420be583bff792f6dfd2f88c51a571771a3 Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Sat, 17 Dec 2011 14:40:58 +1300 Subject: [PATCH] MINOR Change error reporting level to explicitly exclude values rather than using XOR. --- core/Core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Core.php b/core/Core.php index c60295dd8..b77a510bd 100644 --- a/core/Core.php +++ b/core/Core.php @@ -250,8 +250,8 @@ SS_TemplateLoader::instance()->pushManifest(new SS_TemplateManifest( // This is necessary to force developers to acknowledge and fix // notice level errors (you can override this directive in your _config.php) if (Director::isLive()) { - if(defined('E_DEPRECATED')) error_reporting((E_ALL ^ E_NOTICE) ^ E_DEPRECATED); - else error_reporting(E_ALL ^ E_NOTICE); + if(defined('E_DEPRECATED')) error_reporting(E_ALL & ~(E_DEPRECATED | E_STRICT | E_NOTICE)); + else error_reporting(E_ALL & ~E_NOTICE); } /////////////////////////////////////////////////////////////////////////////// // POST-MANIFEST COMMANDS