From 6e194a97041191f4f3ec8eea68e9d5aba458a6d7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 13 Apr 2016 15:07:14 +0200 Subject: [PATCH] reset errorcode fixes github issue #38 --- src/php_http_client_curl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 567c3c6..7fa2023 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1829,6 +1829,7 @@ static ZEND_RESULT_CODE php_http_client_curl_handler_reset(php_http_client_curl_ st->cookiestore = NULL; } st->errorbuffer[0] = '\0'; + st->errorcode = 0; } curl_easy_setopt(ch, CURLOPT_URL, NULL); -- 2.30.2