reset errorcode
authorMichael Wallner <mike@php.net>
Wed, 13 Apr 2016 13:07:14 +0000 (15:07 +0200)
committerMichael Wallner <mike@php.net>
Wed, 13 Apr 2016 13:07:14 +0000 (15:07 +0200)
fixes github issue #38

src/php_http_client_curl.c

index 567c3c6c1c69f2a65f019d00c5384b30905ce978..7fa202383d7793db3d607d685442ad4c7e7fe5ed 100644 (file)
@@ -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);