1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +02:00

Issue #5443 - PHP 8.4 fixes.

This commit is contained in:
camer0n
2025-03-16 12:48:18 -07:00
parent a41e9bbde3
commit 52041d406f
3 changed files with 24 additions and 6 deletions

View File

@@ -1981,8 +1981,15 @@ class error_handler
function __construct()
{
$this->label = array(E_NOTICE => "Notice", E_WARNING => "Warning", E_DEPRECATED => "Deprecated", E_STRICT => "Strict");
$this->color = array(E_NOTICE=> 'info', E_WARNING=>'warning', E_DEPRECATED => 'danger', E_STRICT => 'primary');
$this->label = array(E_NOTICE => "Notice", E_WARNING => "Warning", E_DEPRECATED => "Deprecated");
$this->color = array(E_NOTICE=> 'info', E_WARNING=>'warning', E_DEPRECATED => 'danger');
if (version_compare(PHP_VERSION, '8.4', '<'))
{
$this->label[E_STRICT] = "Strict";
$this->color[E_STRICT] = 'primary';
}
$this->docroot = e_ROOT; // dirname(realpath(__FILE__)).DIRECTORY_SEPARATOR;
// This is initialized before the current debug level is known
@@ -2003,7 +2010,7 @@ class error_handler
if(!empty($_E107['cli']))
{
error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE);
error_reporting(E_ALL & ~E_NOTICE);
return;
}