From: Michael Wallner Date: Wed, 13 Jan 2021 08:59:56 +0000 (+0100) Subject: limit the workaround for #84 to libcurl 7.63-7.64 X-Git-Tag: RELEASE_3_2_4~12 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7c368b4543fee77dd137b0cd20b5db277b3b5309;p=m6w6%2Fext-http limit the workaround for #84 to libcurl 7.63-7.64 fix #89 --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 94cdf47..619826a 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -2075,7 +2075,9 @@ static void php_http_client_curl_handler_clear(php_http_client_curl_handler_t *h curl_easy_setopt(handler->handle, CURLOPT_COOKIELIST, "FLUSH"); curl_easy_setopt(handler->handle, CURLOPT_SHARE, NULL); /* see gh issue #84 */ +#if PHP_HTTP_CURL_VERSION(7,63,0) && !PHP_HTTP_CURL_VERSION(7,65,0) curl_easy_setopt(handler->handle, CURLOPT_COOKIEJAR, NULL); +#endif } static void php_http_client_curl_handler_dtor(php_http_client_curl_handler_t *handler)