X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_curl_api.c;h=b117d36388169457c5775db8e66484ae5619be43;hb=4f232fcd18f54f824fcefcbc76a8413a7db94799;hp=1af011110ae8ae38bb769f95dadd824bf67f19ea;hpb=f9e42842f5dea66a0aeef75fdefe7ffd648663a3;p=m6w6%2Fext-http diff --git a/http_curl_api.c b/http_curl_api.c index 1af0111..b117d36 100644 --- a/http_curl_api.c +++ b/http_curl_api.c @@ -45,7 +45,6 @@ ZEND_DECLARE_MODULE_GLOBALS(http) # define http_curl_reset(ch) #endif -/* FIXXME: correct version where strerror is supported! */ #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;