mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added handling of E_USER_DEPRECATED to ErrorHandler and Debugger.
This commit is contained in:
parent
6f09f5dfc8
commit
94e5ec0545
3 changed files with 10 additions and 1 deletions
|
@ -217,6 +217,7 @@ class ErrorHandler {
|
||||||
$log = LOG_NOTICE;
|
$log = LOG_NOTICE;
|
||||||
break;
|
break;
|
||||||
case E_DEPRECATED:
|
case E_DEPRECATED:
|
||||||
|
case E_USER_DEPRECATED:
|
||||||
$error = 'Deprecated';
|
$error = 'Deprecated';
|
||||||
$log = LOG_NOTICE;
|
$log = LOG_NOTICE;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -241,6 +241,11 @@ class Debugger {
|
||||||
$error = 'Notice';
|
$error = 'Notice';
|
||||||
$level = LOG_NOTICE;
|
$level = LOG_NOTICE;
|
||||||
break;
|
break;
|
||||||
|
case E_DEPRECATED:
|
||||||
|
case E_USER_DEPRECATED:
|
||||||
|
$error = 'Deprecated';
|
||||||
|
$level = LOG_NOTICE;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
break;
|
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);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,10 @@ define('TIME_START', microtime(true));
|
||||||
if (!defined('E_DEPRECATED')) {
|
if (!defined('E_DEPRECATED')) {
|
||||||
define('E_DEPRECATED', 8192);
|
define('E_DEPRECATED', 8192);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined('E_USER_DEPRECATED')) {
|
||||||
|
define('E_USER_DEPRECATED', E_USER_NOTICE);
|
||||||
|
}
|
||||||
error_reporting(E_ALL & ~E_DEPRECATED);
|
error_reporting(E_ALL & ~E_DEPRECATED);
|
||||||
|
|
||||||
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
||||||
|
|
Loading…
Reference in a new issue