X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_client_curl.c;fp=src%2Fphp_http_client_curl.c;h=8a28008634adb2352fc090aefe93ef8e434ab02a;hp=9a6ce26d506872a321bf95b3e09d681d62d14898;hb=4e5f36bd0b770444c8e5151c498fa96326e261c5;hpb=c13070d6868ec03633930c0744c319306790ca7d diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 9a6ce26..8a28008 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -2077,7 +2077,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)