X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http.c;h=575fc3c724f2a43d2ec22d9d46a4341bdb6b986e;hb=76a1064dde808801f4988df89521a323661742aa;hp=ce1a3988c8133c294e4eaa6090173b3139d0b699;hpb=ce14c30128d4e944ce1daf9e31ca7cea4f0ee3e2;p=m6w6%2Fext-http diff --git a/http.c b/http.c index ce1a398..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 @@ -114,6 +115,7 @@ function_entry http_functions[] = { PHP_FE(http_split_response, NULL) PHP_FE(http_parse_headers, NULL) PHP_FE(http_get_request_headers, NULL) + PHP_FE(http_match_request_header, NULL) #ifdef HTTP_HAVE_CURL PHP_FE(http_get, http_request_info_ref_3) PHP_FE(http_head, http_request_info_ref_3) @@ -183,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); } /* }}} */ @@ -241,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 */