- highly experimental stream wrapper
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 6fc1af9281c1142bf11f6bc2f486d7ef0121a009..2beb4af34a37190575e472ac886d92f4e549615e 100644 (file)
--- a/http.c
+++ b/http.c
@@ -34,6 +34,9 @@
 #include "php_http_request_method_api.h"
 #ifdef HTTP_HAVE_CURL
 #      include "php_http_request_api.h"
+#      ifdef HTTP_HAVE_WRAPPER
+#              include "php_http_wrapper_api.h"
+#      endif
 #endif
 
 #ifdef ZEND_ENGINE_2
@@ -83,6 +86,7 @@ zend_function_entry http_functions[] = {
        PHP_FE(http_chunked_decode, NULL)
        PHP_FE(http_parse_message, NULL)
        PHP_FE(http_parse_headers, NULL)
+       PHP_FE(http_parse_cookie, NULL)
        PHP_FE(http_get_request_headers, NULL)
        PHP_FE(http_get_request_body, NULL)
        PHP_FE(http_match_request_header, NULL)
@@ -222,6 +226,9 @@ PHP_MINIT_FUNCTION(http)
                        (SUCCESS != PHP_MINIT_CALL(http_headers))       ||
 #ifdef HTTP_HAVE_CURL
                        (SUCCESS != PHP_MINIT_CALL(http_request))       ||
+#      ifdef HTTP_HAVE_WRAPPER
+                       (SUCCESS != PHP_MINIT_CALL(http_wrapper))       ||
+#      endif
 #endif /* HTTP_HAVE_CURL */
                        (SUCCESS != PHP_MINIT_CALL(http_request_method))) {
                return FAILURE;