mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
PHP 8.5 curl_close() is deprecated, as it has no effect since PHP 8.0
This commit is contained in:
parent
a87aeb02c8
commit
fb3c4eeedd
6 changed files with 0 additions and 6 deletions
|
|
@ -76,7 +76,6 @@ class WebdisConnection implements NodeConnectionInterface
|
||||||
*/
|
*/
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
curl_close($this->resource);
|
|
||||||
phpiredis_reader_destroy($this->reader);
|
phpiredis_reader_destroy($this->reader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,6 @@ class jsonapi
|
||||||
if ($result == false) {
|
if ($result == false) {
|
||||||
throw new \Exception("curl_exec threw error \"" . \curl_error($curl) . "\" for " . $url . "?" . $postdata );
|
throw new \Exception("curl_exec threw error \"" . \curl_error($curl) . "\" for " . $url . "?" . $postdata );
|
||||||
}
|
}
|
||||||
\curl_close($curl);
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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_HTTPHEADER, array_map(function($k, $v) {return "$k: $v";}, array_keys($headers), $headers));
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
$result = curl_exec($ch);
|
$result = curl_exec($ch);
|
||||||
curl_close($ch);
|
|
||||||
|
|
||||||
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
|
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -474,7 +474,6 @@ class Client
|
||||||
} else {
|
} else {
|
||||||
$json_decode = json_decode($result, true);
|
$json_decode = json_decode($result, true);
|
||||||
}
|
}
|
||||||
curl_close($ch);
|
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'result' => (null === $json_decode) ? $result : $json_decode,
|
'result' => (null === $json_decode) ? $result : $json_decode,
|
||||||
|
|
|
||||||
|
|
@ -474,7 +474,6 @@ class Client
|
||||||
} else {
|
} else {
|
||||||
$json_decode = json_decode($result, true);
|
$json_decode = json_decode($result, true);
|
||||||
}
|
}
|
||||||
curl_close($ch);
|
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'result' => (null === $json_decode) ? $result : $json_decode,
|
'result' => (null === $json_decode) ? $result : $json_decode,
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,6 @@ class CURL extends \SnappyMail\HTTP\Request
|
||||||
}
|
}
|
||||||
return new Response($request_url, $code, $this->response_headers, $this->response_body);
|
return new Response($request_url, $code, $this->response_headers, $this->response_body);
|
||||||
} finally {
|
} finally {
|
||||||
\curl_close($c);
|
|
||||||
$this->response_headers = array();
|
$this->response_headers = array();
|
||||||
$this->response_body = '';
|
$this->response_body = '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue