X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=2402ccba6b7fd761c9ac943106306833f38c5430;hp=5d0491a19ff14ce1db779ee34e1591e7c92c3bdb;hb=c84a33c447309f6ac03a0f21e309b3deb4ca543c;hpb=afd561b680a07837192efbdb9ffe248def36f8e9 diff --git a/http.c b/http.c index 5d0491a..2402ccb 100644 --- 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; }