X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_curl.h;h=a76724ca15450d3dfcb7907cbc6ebe24027b3a7e;hp=0c533bdf839df3a788163c852a8118d7824e7efb;hb=6c1356cbe7363bf41f770b1dce59abef93dcc021;hpb=53a654ed6e112b2766b41c01a1c2bb79373c59e4 diff --git a/src/php_http_curl.h b/src/php_http_curl.h index 0c533bd..a76724c 100644 --- a/src/php_http_curl.h +++ b/src/php_http_curl.h @@ -13,16 +13,20 @@ #ifndef PHP_HTTP_CURL_H #define PHP_HTTP_CURL_H -#if PHP_HTTP_HAVE_CURL +#if PHP_HTTP_HAVE_LIBCURL #include #define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z))) #define PHP_HTTP_CURL_FEATURE(f) (curl_version_info(CURLVERSION_NOW)->features & (f)) +#if !PHP_HTTP_CURL_VERSION(7,21,5) +# define CURLE_UNKNOWN_OPTION CURLE_FAILED_INIT +#endif + PHP_MINIT_FUNCTION(http_curl); PHP_MSHUTDOWN_FUNCTION(http_curl); -#endif /* PHP_HTTP_HAVE_CURL */ +#endif /* PHP_HTTP_HAVE_LIBCURL */ #endif /* PHP_HTTP_CURL_H */