- aliases for HttpUtil
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 4a7ccd969e81ace1da141861d238b045e4211d50..ffbae18cdb8f848e301ab70b97f8a4293aacd9cb 100644 (file)
--- a/http.c
+++ b/http.c
@@ -82,6 +82,7 @@ zend_function_entry http_functions[] = {
        PHP_FALIAS(http_absolute_uri, http_build_uri, NULL)
        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)
        PHP_FE(http_redirect, NULL)
        PHP_FE(http_throttle, NULL)
        PHP_FE(http_send_status, NULL)
@@ -220,7 +221,7 @@ PHP_INI_MH(http_update_allowed_methods)
 #undef CASE_HTTP_ETAG_HASH
 #define CASE_HTTP_ETAG_HASH(HASH) \
        case HTTP_ETAG_##HASH: \
-               ZEND_WRITE(#HASH, lenof(#HASH)); \
+               ZEND_WRITE("HTTP_ETAG_"#HASH, lenof("HTTP_ETAG_"#HASH)); \
        break;
 PHP_INI_DISP(http_etag_mode_displayer)
 {