X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=ca91a28cae071e142c99430bbfce41a5ceca5a7b;hp=49b699b04dba59a7fea3b83827273d72f5b2a2a7;hb=ab29a31d9129a377cdd664de08cb2bf86a72be1b;hpb=6a5ec2c676458f24e191801ee20bce02691138b6 diff --git a/http_request_api.c b/http_request_api.c index 49b699b..ca91a28 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -48,6 +48,14 @@ ZEND_EXTERN_MODULE_GLOBALS(http) #if LIBCURL_VERSION_NUM < 0x070c00 # define curl_easy_strerror(code) HTTP_G(request).error +# ifndef curl_multi_strerror + static char *curl_multi_strerror(int code) + { + char message[256] = {0}; + snprintf(message, 255, "Unknown HttpRequestPool error (curl multi code: %d)", code); + return http_request_data_copy(COPY_STRING, message); + } +#endif #endif #define HTTP_CURL_INFO(I) HTTP_CURL_INFO_EX(I, I) @@ -973,7 +981,7 @@ void _http_request_pool_responsehandler(zval **req TSRMLS_DC) #if HTTP_DEBUG_REQPOOLS fprintf(stderr, "Fetching data from request %p of pool %p\n", obj, obj->pool); #endif - http_request_object_responsehandler(obj, *req, NULL); + http_request_object_responsehandler(obj, *req); } /* }}} */