Skip to content

Commit

Permalink
BUGFIX: Fix E_STRICT errors not being reported
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewandante committed Apr 11, 2012
1 parent a64715b commit c5aa074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 4 additions & 0 deletions dev/DebugView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
);

Expand Down

0 comments on commit c5aa074

Please sign in to comment.