From: Pierre Joye Date: Tue, 6 Dec 2011 15:35:07 +0000 (+0000) Subject: - fix build, CURLOPT_FNMATCH_DATA exists since 7.21.0 only X-Git-Tag: php-5.5.0alpha1~755 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05781c747bb535e1ba03d363f9486c272d172f6b;p=php - fix build, CURLOPT_FNMATCH_DATA exists since 7.21.0 only --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index c9a80ed2e1..7884f5ddb8 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1982,7 +1982,9 @@ PHP_FUNCTION(curl_copy_handle) dupch->handlers->fnmatch->func_name = ch->handlers->fnmatch->func_name; } dupch->handlers->fnmatch->method = ch->handlers->fnmatch->method; +#if LIBCURL_VERSION_NUM >= 0x071500 /* Available since 7.21.0 */ curl_easy_setopt(dupch->cp, CURLOPT_FNMATCH_DATA, (void *) dupch); +#endif } efree(dupch->to_free);