X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_curl.h;h=a76724ca15450d3dfcb7907cbc6ebe24027b3a7e;hp=ab8b63ceb9835ee57589d42126a1005e17d2c590;hb=ccc68db494d5436acae7254f81ed111780e00d72;hpb=57e944b102006abfa4005337b0ac5901425f4289 diff --git a/src/php_http_curl.h b/src/php_http_curl.h index ab8b63c..a76724c 100644 --- a/src/php_http_curl.h +++ b/src/php_http_curl.h @@ -13,15 +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 */