From 4a535f32651f29b740cf813d78e66480c52e1718 Mon Sep 17 00:00:00 2001 From: CommanderRoot Date: Tue, 25 Nov 2025 21:58:26 +0100 Subject: [PATCH] Remove deprecated usage of curl_close() for PHP versions > 8.0 (#1973) --- lib/HttpClient/CurlClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/HttpClient/CurlClient.php b/lib/HttpClient/CurlClient.php index 8b4b2295e..c210a32c4 100644 --- a/lib/HttpClient/CurlClient.php +++ b/lib/HttpClient/CurlClient.php @@ -758,7 +758,9 @@ private function initCurlHandle() private function closeCurlHandle() { if (null !== $this->curlHandle) { - \curl_close($this->curlHandle); + if (PHP_VERSION_ID < 80000) { + \curl_close($this->curlHandle); + } $this->curlHandle = null; } }