projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
configure: fix libbrotli check
[m6w6/ext-http]
/
src
/
php_http_curl.h
diff --git
a/src/php_http_curl.h
b/src/php_http_curl.h
index ab8b63ceb9835ee57589d42126a1005e17d2c590..a76724ca15450d3dfcb7907cbc6ebe24027b3a7e 100644
(file)
--- 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
#ifndef PHP_HTTP_CURL_H
#define PHP_HTTP_CURL_H
-#if PHP_HTTP_HAVE_CURL
+#if PHP_HTTP_HAVE_
LIB
CURL
#include <curl/curl.h>
#define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z)))
#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);
PHP_MINIT_FUNCTION(http_curl);
PHP_MSHUTDOWN_FUNCTION(http_curl);
-#endif /* PHP_HTTP_HAVE_CURL */
+#endif /* PHP_HTTP_HAVE_
LIB
CURL */
#endif /* PHP_HTTP_CURL_H */
#endif /* PHP_HTTP_CURL_H */