From c5aa074bff83374e0d41f9cb00ea9c2101d52b92 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 11 Apr 2012 14:39:02 +1200 Subject: [PATCH] BUGFIX: Fix E_STRICT errors not being reported --- dev/Debug.php | 3 ++- dev/DebugView.php | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dev/Debug.php b/dev/Debug.php index 847b3bedd..fbc90779a 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -220,7 +220,7 @@ class Debug { ), SS_Log::NOTICE ); - + if(Director::isDev()) { self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Notice"); } @@ -699,6 +699,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) { case E_USER_NOTICE: case E_DEPRECATED: case E_USER_DEPRECATED: + case E_STRICT: Debug::noticeHandler($errno, $errstr, $errfile, $errline, null); break; } diff --git a/dev/DebugView.php b/dev/DebugView.php index 7a094d6a9..3ca978c2c 100644 --- a/dev/DebugView.php +++ b/dev/DebugView.php @@ -53,6 +53,10 @@ class DebugView extends Object { E_USER_WARNING => array( 'title' => 'User Warning', 'class' => 'warning' + ), + E_STRICT => array( + 'title' => 'Strict Notice', + 'class' => 'notice' ) );