PHP 8.5 curl_close() is deprecated, as it has no effect since PHP 8.0

This commit is contained in:
the-djmaze 2026-11-03 02:29:40 +01:00
parent a87aeb02c8
commit fb3c4eeedd
6 changed files with 0 additions and 6 deletions

View file

@ -76,7 +76,6 @@ class WebdisConnection implements NodeConnectionInterface
*/
public function __destruct()
{
curl_close($this->resource);
phpiredis_reader_destroy($this->reader);
}

View file

@ -290,7 +290,6 @@ class jsonapi
if ($result == false) {
throw new \Exception("curl_exec threw error \"" . \curl_error($curl) . "\" for " . $url . "?" . $postdata );
}
\curl_close($curl);
return $result;
}

View file

@ -60,7 +60,6 @@ class ChangePasswordMailcowDriver
curl_setopt($ch, CURLOPT_HTTPHEADER, array_map(function($k, $v) {return "$k: $v";}, array_keys($headers), $headers));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

View file

@ -474,7 +474,6 @@ class Client
} else {
$json_decode = json_decode($result, true);
}
curl_close($ch);
return array(
'result' => (null === $json_decode) ? $result : $json_decode,

View file

@ -474,7 +474,6 @@ class Client
} else {
$json_decode = json_decode($result, true);
}
curl_close($ch);
return array(
'result' => (null === $json_decode) ? $result : $json_decode,

View file

@ -93,7 +93,6 @@ class CURL extends \SnappyMail\HTTP\Request
}
return new Response($request_url, $code, $this->response_headers, $this->response_body);
} finally {
\curl_close($c);
$this->response_headers = array();
$this->response_body = '';
}