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 567c3c6..7fa2023 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);