- better inline docs part #1
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 5d0491a19ff14ce1db779ee34e1591e7c92c3bdb..2402ccba6b7fd761c9ac943106306833f38c5430 100644 (file)
--- a/http.c
+++ b/http.c
@@ -30,6 +30,7 @@
 #include "php_http_api.h"
 #include "php_http_send_api.h"
 #include "php_http_cache_api.h"
+#include "php_http_headers_api.h"
 #include "php_http_request_method_api.h"
 #ifdef HTTP_HAVE_CURL
 #      include "php_http_request_api.h"
@@ -74,7 +75,8 @@ ZEND_GET_MODULE(http)
 zend_function_entry http_functions[] = {
        PHP_FE(http_test, NULL)
        PHP_FE(http_date, NULL)
-       PHP_FE(http_absolute_uri, NULL)
+       PHP_FE(http_build_uri, NULL)
+       PHP_FALIAS(http_absolute_uri, http_build_uri, NULL)
        PHP_FE(http_negotiate_language, NULL)
        PHP_FE(http_negotiate_charset, NULL)
        PHP_FE(http_redirect, NULL)
@@ -263,6 +265,9 @@ PHP_MINIT_FUNCTION(http)
 
        REGISTER_INI_ENTRIES();
        
+       if (SUCCESS != http_headers_global_init()) {
+               return FAILURE;
+       }
        if (SUCCESS != http_cache_global_init()) {
                return FAILURE;
        }