]> granicus.if.org Git - php/commitdiff
rename functions to match those supported in the apache 1.3 module:
authorDoug MacEachern <dougm@php.net>
Fri, 7 Dec 2001 05:31:07 +0000 (05:31 +0000)
committerDoug MacEachern <dougm@php.net>
Fri, 7 Dec 2001 05:31:07 +0000 (05:31 +0000)
 apache_sub_request -> virtual
 get_all_headers    -> getallheaders

sapi/apache2filter/php_functions.c

index 395d2edad6a90c46fe30704569b4d5709914e302..a49e4a70ae0abd6190def234a46e75e0533e404e 100644 (file)
@@ -48,9 +48,9 @@ static request_rec *php_apache_lookup_uri(INTERNAL_FUNCTION_PARAMETERS)
        return ap_sub_req_lookup_uri(Z_STRVAL_PP(p1), ctx->f->r, ctx->f->next);
 }
 
-/* {{{ proto bool apache_sub_req(string uri)
+/* {{{ proto bool virtual(string uri)
  Perform an apache sub-request */
-PHP_FUNCTION(apache_sub_req)
+PHP_FUNCTION(virtual)
 {
        request_rec *rr;
 
@@ -110,9 +110,9 @@ PHP_FUNCTION(apache_lookup_uri)
        RETURN_FALSE;
 }
 
-/* {{{ proto array get_all_headers(void)
+/* {{{ proto array getallheaders(void)
    Fetch all HTTP request headers */
-PHP_FUNCTION(get_all_headers)
+PHP_FUNCTION(getallheaders)
 {
        php_struct *ctx;
        apr_array_header_t *arr;
@@ -138,8 +138,8 @@ PHP_MINFO_FUNCTION(apache)
 
 static function_entry apache_functions[] = {
        PHP_FE(apache_lookup_uri, NULL)
-       PHP_FE(apache_sub_req, NULL)
-       PHP_FE(get_all_headers, NULL)
+       PHP_FE(virtual, NULL)
+       PHP_FE(getallheaders, NULL)
        {0}
 };