]> granicus.if.org Git - php/commitdiff
- fix build, CURLOPT_FNMATCH_DATA exists since 7.21.0 only
authorPierre Joye <pajoye@php.net>
Tue, 6 Dec 2011 15:35:07 +0000 (15:35 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 6 Dec 2011 15:35:07 +0000 (15:35 +0000)
ext/curl/interface.c

index c9a80ed2e18e6b3bae0f4c1383fa976b4ad42c5e..7884f5ddb81d28ad2d0cd6a9ab3e74a5f9331254 100644 (file)
@@ -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);