From 6db8f8545089425877aaf5d569963c057259a86f Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 13 Apr 2012 13:23:26 +1200 Subject: [PATCH] API CHANGE Enable E_STRICT, but include DebugView, Log classes as these are not always guaranteed to be loaded by ClassLoader at the time a strict error is issued. --- core/Core.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/Core.php b/core/Core.php index 07b32e3cf..4d89e8973 100644 --- a/core/Core.php +++ b/core/Core.php @@ -40,7 +40,7 @@ // ALL errors are reported, including E_STRICT by default *unless* the site is in // live mode, where reporting is limited to fatal errors and warnings (see later in this file) -error_reporting(E_ALL & ~(E_STRICT)); +error_reporting(E_ALL | E_STRICT); /** * Include _ss_environment.php files @@ -223,6 +223,10 @@ require_once 'core/ClassInfo.php'; require_once 'view/TemplateGlobalProvider.php'; require_once 'control/Director.php'; require_once 'dev/Debug.php'; +require_once 'dev/DebugView.php'; +require_once 'dev/Backtrace.php'; +require_once 'dev/ZendLog.php'; +require_once 'dev/Log.php'; require_once 'filesystem/FileFinder.php'; require_once 'core/manifest/ClassLoader.php'; require_once 'core/manifest/ClassManifest.php';