From d5fc31a616c88f9f966469a7dfef181a62af7076 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Fri, 27 Feb 2026 16:52:52 +0000 Subject: [PATCH] add version check around curl close --- lib/net/authorize/util/HttpClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/net/authorize/util/HttpClient.php b/lib/net/authorize/util/HttpClient.php index 9884beb4..3cecdfd6 100644 --- a/lib/net/authorize/util/HttpClient.php +++ b/lib/net/authorize/util/HttpClient.php @@ -107,7 +107,9 @@ public function _sendRequest($xmlRequest) } } - curl_close($curl_request); + if (PHP_VERSION_ID <= 80000) { + curl_close($curl_request); + } return $xmlResponse; }