- now I know what to use TSRMLS_SET_CTX() and TSRMLS_FETCH_FROM_CTX() for...
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index ce1a3988c8133c294e4eaa6090173b3139d0b699..575fc3c724f2a43d2ec22d9d46a4341bdb6b986e 100644 (file)
--- 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 */