2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2014, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
13 #ifndef PHP_HTTP_CURL_H
14 #define PHP_HTTP_CURL_H
16 #if PHP_HTTP_HAVE_LIBCURL
18 #include <curl/curl.h>
19 #define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z)))
20 #define PHP_HTTP_CURL_FEATURE(f) (curl_version_info(CURLVERSION_NOW)->features & (f))
22 #if !PHP_HTTP_CURL_VERSION(7,21,5)
23 # define CURLE_UNKNOWN_OPTION CURLE_FAILED_INIT
26 PHP_MINIT_FUNCTION(http_curl
);
27 PHP_MSHUTDOWN_FUNCTION(http_curl
);
29 #endif /* PHP_HTTP_HAVE_LIBCURL */
31 #endif /* PHP_HTTP_CURL_H */
38 * vim600: noet sw=4 ts=4 fdm=marker
39 * vim<600: noet sw=4 ts=4