Added handling of E_USER_DEPRECATED to ErrorHandler and Debugger.

This commit is contained in:
Thomas Ploch 2012-02-04 19:27:09 +01:00
parent 6f09f5dfc8
commit 94e5ec0545
3 changed files with 10 additions and 1 deletions

View file

@ -217,6 +217,7 @@ class ErrorHandler {
$log = LOG_NOTICE;
break;
case E_DEPRECATED:
case E_USER_DEPRECATED:
$error = 'Deprecated';
$log = LOG_NOTICE;
break;

View file

@ -241,6 +241,11 @@ class Debugger {
$error = 'Notice';
$level = LOG_NOTICE;
break;
case E_DEPRECATED:
case E_USER_DEPRECATED:
$error = 'Deprecated';
$level = LOG_NOTICE;
break;
default:
return;
break;
@ -716,5 +721,4 @@ class Debugger {
trigger_error(__d('cake_dev', 'Please change the value of \'Security.cipherSeed\' in app/Config/core.php to a numeric (digits only) seed value specific to your application'), E_USER_NOTICE);
}
}
}

View file

@ -23,6 +23,10 @@ define('TIME_START', microtime(true));
if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 8192);
}
if (!defined('E_USER_DEPRECATED')) {
define('E_USER_DEPRECATED', E_USER_NOTICE);
}
error_reporting(E_ALL & ~E_DEPRECATED);
if (!defined('CAKE_CORE_INCLUDE_PATH')) {