mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
fix:#3782 avoid E_STRICT on PHP 8.4+
This commit is contained in:
@@ -611,8 +611,8 @@ class elFinder
|
||||
$errLevel |= E_DEPRECATED | E_USER_DEPRECATED;
|
||||
}
|
||||
// E_STRICT is deprecated; see https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant
|
||||
if (defined('E_STRICT')) {
|
||||
$errLevel |= @E_STRICT;
|
||||
if (PHP_VERSION_ID < 80400 && defined('E_STRICT')) {
|
||||
$errLevel |= E_STRICT;
|
||||
}
|
||||
set_error_handler('elFinder::phpErrorHandler', $errLevel);
|
||||
|
||||
@@ -4368,7 +4368,7 @@ var go = function() {
|
||||
}
|
||||
|
||||
// E_STRICT is deprecated; see https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant
|
||||
if (defined('E_STRICT') && $errno === @E_STRICT) {
|
||||
if (PHP_VERSION_ID < 80400 && defined('E_STRICT') && $errno === E_STRICT) {
|
||||
elFinder::$phpErrors[] = "STRICT: $errstr in $errfile line $errline.";
|
||||
$proc = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user