From: Michael Wallner Date: Tue, 17 Feb 2015 21:20:23 +0000 (+0100) Subject: fix build with old libcurl X-Git-Tag: RELEASE_2_3_0_RC1~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=27b7c648120c1f061ba7c494441347cdb891eea4;p=m6w6%2Fext-http fix build with old libcurl --- diff --git a/php_http_client_curl.c b/php_http_client_curl.c index df2bb11..97408bd 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -934,6 +934,9 @@ static STATUS php_http_curle_option_set_compress(php_http_option_t *opt, zval *v php_http_client_curl_handler_t *curl = userdata; CURL *ch = curl->handle; +#if !PHP_HTTP_CURL_VERSION(7,21,6) +# define CURLOPT_ACCEPT_ENCODING CURLOPT_ENCODING +#endif if (CURLE_OK != curl_easy_setopt(ch, CURLOPT_ACCEPT_ENCODING, Z_BVAL_P(val) ? "" : NULL)) { return FAILURE; }