BUGFIX Disable E_DEPRECATED error for sapphire/branches/2.2 if running on PHP 5.3

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@111795 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-07 19:43:08 +00:00 committed by Sam Minnee
parent 23a6e4f1ac
commit 58e7394306

View File

@ -92,7 +92,8 @@ require_once("core/Session.php");
// If this is a dev site, enable php error reporting
if(Director::isDev()) {
error_reporting(E_ALL);
if(defined('E_DEPRECATED')) error_reporting(E_ALL ^ E_DEPRECATED);
else error_reporting(E_ALL);
}
Session::start();