public function CurlHandle::getErrorNo

Get the last error number that occurred on the cURL handle

Return value

int

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlHandle.php, line 296

Class

CurlHandle
Immutable wrapper for a cURL handle

Namespace

Guzzle\Http\Curl

Code

public function getErrorNo() {
  if ($this->errorNo) {
    return $this->errorNo;
  }
  return $this
    ->isAvailable() ? curl_errno($this->handle) : CURLE_OK;
}