BUGFIX: Fix E_STRICT errors not being reported

This commit is contained in:
Andrew O'Neil 2012-04-11 14:39:02 +12:00
parent a64715beeb
commit c5aa074bff
2 changed files with 6 additions and 1 deletions

View File

@ -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;
}

View File

@ -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'
)
);