coverity fixes
[m6w6/ext-http] / src / php_http_curl.h
index ab8b63ceb9835ee57589d42126a1005e17d2c590..7a9821c188c0851a5d780fa45fff9f2867d5561c 100644 (file)
 
 #include <curl/curl.h>
 #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);