Browse files

API CHANGE Enable E_STRICT, but include DebugView, Log classes as the…

…se are not always guaranteed to be loaded by ClassLoader at the time a strict error is issued.
  • Loading branch information...
1 parent aa14a51 commit 6db8f8545089425877aaf5d569963c057259a86f @halkyon halkyon committed Apr 13, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 core/Core.php
View
6 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 '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';

0 comments on commit 6db8f85

Please sign in to comment.