diff --git a/lib/OpenPayU/HttpCurl.php b/lib/OpenPayU/HttpCurl.php index 86f50e5..a244f86 100644 --- a/lib/OpenPayU/HttpCurl.php +++ b/lib/OpenPayU/HttpCurl.php @@ -61,7 +61,10 @@ public static function doPayuRequest($requestType, $pathUrl, $auth, $data = null if($response === false) { throw new OpenPayU_Exception_Network(curl_error($ch)); } - curl_close($ch); + + if (PHP_VERSION_ID < 80000) { + curl_close($ch); + } return array('code' => $httpStatus, 'response' => trim($response)); }