From: Michael Wallner Date: Wed, 13 Apr 2016 13:07:14 +0000 (+0200) Subject: reset errorcode X-Git-Tag: RELEASE_2_6_0_BETA1~36 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6e194a97041191f4f3ec8eea68e9d5aba458a6d7;p=m6w6%2Fext-http reset errorcode fixes github issue #38 --- 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);