X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=575fc3c724f2a43d2ec22d9d46a4341bdb6b986e;hp=a09fa61251c00ef05931b74d512aaf1072636d6c;hb=76a1064dde808801f4988df89521a323661742aa;hpb=54972db49a9e0cc561b8b2587cc39d431da05521 diff --git a/http.c b/http.c index a09fa61..575fc3c 100644 --- a/http.c +++ b/http.c @@ -46,6 +46,7 @@ # include "php_http_response_object.h" # ifdef HTTP_HAVE_CURL # include "php_http_request_object.h" +# include "php_http_requestpool_object.h" # endif # include "php_http_exception_object.h" #endif @@ -184,6 +185,7 @@ static inline void http_globals_free(zend_http_globals *G) STR_FREE(G->send.content_type); STR_FREE(G->send.unquoted_etag); zend_hash_destroy(&G->request.methods.custom); + zend_llist_clean(&G->request.curl.copies); } /* }}} */ @@ -242,6 +244,7 @@ PHP_MINIT_FUNCTION(http) http_response_object_init(); # ifdef HTTP_HAVE_CURL http_request_object_init(); + http_requestpool_object_init(); # endif /* HTTP_HAVE_CURL */ http_exception_object_init(); #endif /* ZEND_ENGINE_2 */