From 4752a0a6e37d9fe51607ebc9357a4eb55160e079 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Fri, 17 Jan 2025 14:46:00 +0100 Subject: [PATCH] PHP 8.4: E_STRICT constant deprecated From PHP 8.4 the E_STRICT constant has been deprecated and will emit deprecation notices. For details see: https://php.watch/versions/8.4/E_STRICT-deprecated Signed-off-by: Daniel Ziegenberg --- src/Server.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index 338e360..c988967 100644 --- a/src/Server.php +++ b/src/Server.php @@ -1417,8 +1417,10 @@ public static function _xmlrpcs_errorHandler($errCode, $errString, $filename = n } //if ($errCode != E_NOTICE && $errCode != E_WARNING && $errCode != E_USER_NOTICE && $errCode != E_USER_WARNING) - if ($errCode != E_STRICT) { + if (PHP_VERSION_ID >= 70400) { static::error_occurred($errString); + } elseif ($errCode != E_STRICT) { + static::error_occurred($errString); } // Try to avoid as much as possible disruption to the previous error handling mechanism in place