Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX: Fix E_STRICT errors not being reported

  • Loading branch information...
commit c5aa074bff83374e0d41f9cb00ea9c2101d52b92 1 parent a64715b
@ajoneil ajoneil authored
Showing with 6 additions and 1 deletion.
  1. +2 −1  dev/Debug.php
  2. +4 −0 dev/DebugView.php
View
3  dev/Debug.php
@@ -220,7 +220,7 @@ static function noticeHandler($errno, $errstr, $errfile, $errline, $errcontext)
),
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;
}
View
4 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'
)
);
Please sign in to comment.
Something went wrong with that request. Please try again.