MINOR: Raise deprecation errors in the same way as notice-level errors.

This commit is contained in:
Sam Minnee 2012-03-24 16:34:10 +13:00
parent 06dd79f34c
commit 7db3b8ecd6
2 changed files with 5 additions and 0 deletions

View File

@ -697,6 +697,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) {
case E_NOTICE: case E_NOTICE:
case E_USER_NOTICE: case E_USER_NOTICE:
case E_USER_DEPRECATED:
Debug::noticeHandler($errno, $errstr, $errfile, $errline, null); Debug::noticeHandler($errno, $errstr, $errfile, $errline, null);
break; break;
} }

View File

@ -30,6 +30,10 @@ class DebugView extends Object {
'title' => 'User Notice', 'title' => 'User Notice',
'class' => 'notice' 'class' => 'notice'
), ),
E_USER_DEPRECATED => array(
'title' => 'Deprecation',
'class' => 'notice'
),
E_CORE_ERROR => array( E_CORE_ERROR => array(
'title' => 'Core Error', 'title' => 'Core Error',
'class' => 'error' 'class' => 'error'