X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=e0f61fc893f027a1525a185a5e81444e5180da1b;hp=c72b510d5b63a90a01f8ec76b9dad8b23edcc7ef;hb=0f08208cc1b223ccb90554718181d553156997f4;hpb=6abb3349f9ec911fd9086aa2f38992abb4f2e12a diff --git a/http.c b/http.c index c72b510..e0f61fc 100644 --- a/http.c +++ b/http.c @@ -384,7 +384,7 @@ static void php_http_init_globals(zend_http_globals *http_globals) http_globals->etag = NULL; http_globals->lmod = 0; #ifdef HTTP_HAVE_CURL - //phpstr_init_ex(&http_globals->curlbuf, HTTP_CURLBUF_SIZE, 1); + phpstr_init_ex(&http_globals->curlbuf, HTTP_CURLBUF_SIZE, 0); zend_llist_init(&http_globals->to_free, sizeof(char *), free_to_free, 0); #endif http_globals->allowed_methods = NULL; @@ -485,7 +485,7 @@ PHP_MSHUTDOWN_FUNCTION(http) { UNREGISTER_INI_ENTRIES(); #ifdef HTTP_HAVE_CURL - //phpstr_free(&HTTP_G(curlbuf)); + phpstr_dtor(&HTTP_G(curlbuf)); curl_global_cleanup(); #endif return SUCCESS; @@ -518,7 +518,7 @@ PHP_RSHUTDOWN_FUNCTION(http) } #ifdef HTTP_HAVE_CURL - //phpstr_free(&HTTP_G(curlbuf)); + phpstr_dtor(&HTTP_G(curlbuf)); #endif return SUCCESS;