X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_client_curl.c;h=619826a1c43b6c47f7f504b936b4837a9270dea0;hb=8ee6bd6586270c9a0a6749d089414f28e35d22f3;hp=94cdf474180549023805549a22230d02e20b3b4b;hpb=8c68d26868c0605654517d6dc098a2b269e118ae;p=m6w6%2Fext-http 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)