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:
13
class2.php
13
class2.php
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user