X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=831040916bf2eef7a72ff7e082ddf55644d75d18;hp=41456dc3f8f7ac7d5462f7963c4aab0160f0761d;hb=1a0dbb96fbe46a2edec1c813798cef7b0898eebe;hpb=0ecd173659b63e77e47271e5bd521599cd9e500f diff --git a/http.c b/http.c index 41456dc..8310409 100644 --- a/http.c +++ b/http.c @@ -34,6 +34,7 @@ #ifdef HTTP_HAVE_ZLIB # include "php_http_encoding_api.h" #endif +#include "php_http_url_api.h" #ifdef ZEND_ENGINE_2 # include "php_http_filter_api.h" @@ -67,6 +68,10 @@ zend_function_entry http_functions[] = { PHP_FE(http_test, NULL) PHP_FE(http_date, NULL) PHP_FE(http_build_url, http_arg_pass_ref_4) + PHP_FE(http_build_str, NULL) +#ifndef ZEND_ENGINE_2 + PHP_FALIAS(http_build_query, http_build_str) +#endif PHP_FE(http_negotiate_language, http_arg_pass_ref_2) PHP_FE(http_negotiate_charset, http_arg_pass_ref_2) PHP_FE(http_negotiate_content_type, http_arg_pass_ref_2) @@ -103,9 +108,6 @@ zend_function_entry http_functions[] = { PHP_FE(http_request_method_unregister, NULL) PHP_FE(http_request_method_exists, NULL) PHP_FE(http_request_method_name, NULL) -#ifndef ZEND_ENGINE_2 - PHP_FE(http_build_query, NULL) -#endif PHP_FE(ob_etaghandler, NULL) #ifdef HTTP_HAVE_ZLIB PHP_FE(http_deflate, NULL) @@ -347,8 +349,9 @@ PHP_MINFO_FUNCTION(http) "HttpInflateStream, " # endif # ifndef WONKY - "HttpResponse" + "HttpResponse, " # endif + "HttpQueryString" #endif ); php_info_print_table_row(2, "Output Handlers", "ob_deflatehandler, ob_inflatehandler, ob_etaghandler");