Bug report
Summary
E_STRICT constant is deprecated in PHP >=8.4.
modErrorHandler causes excessive logging of deprecation notices in PHP error_log file.
Step to reproduce
Running MODX 2.8.8-pl on PHP>=8.4.
Observed behavior
PHP Error Log is excessively filled with Deprecation notices:
PHP Deprecated: Constant E_STRICT is deprecated in /path/to/modx/core/model/modx/error/moderrorhandler.class.php on line 95
Expected behavior
Deprecation notices should be avoided.
Environment
MODX version 2.8.8-pl
PHP version 8.4
Workaround / Fix
Workaround / Fix is potentially to comment out or remove the following switch case from moderrorhandler.class.php at line 95:
case E_STRICT:
$handled= true;
$errmsg= 'E_STRICT information: ' . $errstr;
$this->modx->log(modX::LOG_LEVEL_INFO, $errmsg, '','',$errfile,$errline);
return $handled;
break;
Reference
PHP Manual - errorfunc.constants.php
Bug report
Summary
E_STRICTconstant is deprecated in PHP >=8.4.modErrorHandlercauses excessive logging of deprecation notices in PHP error_log file.Step to reproduce
Running MODX 2.8.8-pl on PHP>=8.4.
Observed behavior
PHP Error Log is excessively filled with Deprecation notices:
PHP Deprecated: Constant E_STRICT is deprecated in /path/to/modx/core/model/modx/error/moderrorhandler.class.php on line 95Expected behavior
Deprecation notices should be avoided.
Environment
MODX version 2.8.8-pl
PHP version 8.4
Workaround / Fix
Workaround / Fix is potentially to comment out or remove the following switch case from
moderrorhandler.class.phpat line 95:Reference
PHP Manual - errorfunc.constants.php