From 7c368b4543fee77dd137b0cd20b5db277b3b5309 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 13 Jan 2021 09:59:56 +0100 Subject: [PATCH] limit the workaround for #84 to libcurl 7.63-7.64 fix #89 --- src/php_http_client_curl.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2