mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Remove additional uses of function_exists() where no longer necessary
This commit is contained in:
+2
-2
@@ -494,7 +494,7 @@ class Curl
|
||||
$this->headerCallbackData->stopRequest = false;
|
||||
|
||||
// Include additional error code information in error message when possible.
|
||||
if ($this->curlError && function_exists('curl_strerror')) {
|
||||
if ($this->curlError) {
|
||||
$this->curlErrorMessage =
|
||||
curl_strerror($this->curlErrorCode) . (
|
||||
empty($this->curlErrorMessage) ? '' : ': ' . $this->curlErrorMessage
|
||||
@@ -1567,7 +1567,7 @@ class Curl
|
||||
*/
|
||||
public function reset()
|
||||
{
|
||||
if (function_exists('curl_reset') && (is_resource($this->curl) || $this->curl instanceof \CurlHandle)) {
|
||||
if (is_resource($this->curl) || $this->curl instanceof \CurlHandle) {
|
||||
curl_reset($this->curl);
|
||||
} else {
|
||||
$this->curl = curl_init();
|
||||
|
||||
Reference in New Issue
Block a user