X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=6efdedd309afdf410bd18966a3a606d63b8a2fe4;hp=fe5d66e8f8b14e31a6d74c25cd022fbc5de0352b;hb=0ac32c9b8590e88a5f110cc8b3154001d5c0c089;hpb=5c295d7204cd8e961b5c44a54e87563df1b058dc diff --git a/http.c b/http.c index fe5d66e..6efdedd 100644 --- a/http.c +++ b/http.c @@ -38,9 +38,17 @@ #include "SAPI.h" #include "php_http.h" +#include "php_http_std_defs.h" #include "php_http_api.h" +#include "php_http_auth_api.h" #include "php_http_curl_api.h" -#include "php_http_std_defs.h" +#include "php_http_cache_api.h" +#include "php_http_curl_api.h" +#include "php_http_date_api.h" +#include "php_http_headers_api.h" +#include "php_http_message_api.h" +#include "php_http_send_api.h" +#include "php_http_url_api.h" #include "phpstr/phpstr.h" @@ -393,6 +401,9 @@ static void php_http_init_globals(zend_http_globals *http_globals) http_globals->lmod = 0; #ifdef HTTP_HAVE_CURL phpstr_init_ex(&http_globals->curlbuf, HTTP_CURLBUF_SIZE, 0); +# if LIBCURL_VERSION_NUM < 0x070c00 + memset(&http_globals->curlerr, 0, sizeof(http_globals->curlerr)); +# endif zend_llist_init(&http_globals->to_free, sizeof(char *), free_to_free, 0); #endif http_globals->allowed_methods = NULL; @@ -526,6 +537,9 @@ PHP_RSHUTDOWN_FUNCTION(http) } #ifdef HTTP_HAVE_CURL +# if LIBCURL_VERSION_NUM < 0x070c00 + memset(&HTTP_G(curlerr), 0, sizeof(HTTP_G(curlerr))); +# endif phpstr_dtor(&HTTP_G(curlbuf)); #endif