X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_curl_api.c;h=b117d36388169457c5775db8e66484ae5619be43;hp=3dc462cdc95a3f8d539121b0efdfc2d23fcd4802;hb=42d4e27ed27128b25212f6bf18bab917f7a89902;hpb=fc73263920c3b5af2f0266d51cd80c0a50017807 diff --git a/http_curl_api.c b/http_curl_api.c index 3dc462c..b117d36 100644 --- a/http_curl_api.c +++ b/http_curl_api.c @@ -45,8 +45,7 @@ ZEND_DECLARE_MODULE_GLOBALS(http) # define http_curl_reset(ch) #endif -/* FIXXME: correct version where strerror is supported! */ -#if LIBCURL_VERSION_NUM < 0x070b01 +#if LIBCURL_VERSION_NUM < 0x070c00 # define curl_easy_strerror(code) "unkown error" #endif @@ -131,7 +130,7 @@ ZEND_DECLARE_MODULE_GLOBALS(http) static inline char *_http_curl_copystr(const char *str TSRMLS_DC); #define http_curl_setopts(c, u, o) _http_curl_setopts((c), (u), (o) TSRMLS_CC) -static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *options TSRMLS_DC); +static void _http_curl_setopts(CURL *ch, const char *url, HashTable *options TSRMLS_DC); #define http_curl_getopt(o, k) _http_curl_getopt((o), (k) TSRMLS_CC, 0) #define http_curl_getopt1(o, k, t1) _http_curl_getopt((o), (k) TSRMLS_CC, 1, (t1)) @@ -211,8 +210,8 @@ static inline zval *_http_curl_getopt(HashTable *options, char *key TSRMLS_DC, i } /* }}} */ -/* {{{ static inline void http_curl_setopts(CURL *, char *, HashTable *) */ -static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *options TSRMLS_DC) +/* {{{ static void http_curl_setopts(CURL *, char *, HashTable *) */ +static void _http_curl_setopts(CURL *ch, const char *url, HashTable *options TSRMLS_DC) { zval *zoption; zend_bool range_req = 0;