cvs: php4 /sapi/apache2filter php_functions.c
| From: | Doug MacEachern | Date: | Fri, 07 Dec 2001 05:31:09 +0000 |
| Subject: | cvs: php4 /sapi/apache2filter php_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8491@lists.php.net to get a copy of this message | ||
dougm Fri Dec 7 00:31:09 2001 EDT
Modified files:
/php4/sapi/apache2filter php_functions.c
Log:
rename functions to match those supported in the apache 1.3 module:
apache_sub_request -> virtual
get_all_headers -> getallheaders
Index: php4/sapi/apache2filter/php_functions.c
diff -u php4/sapi/apache2filter/php_functions.c:1.15 php4/sapi/apache2filter/php_functions.c:1.16
--- php4/sapi/apache2filter/php_functions.c:1.15 Thu Dec 6 14:03:29 2001
+++ php4/sapi/apache2filter/php_functions.c Fri Dec 7 00:31:07 2001
@@ -48,9 +48,9 @@
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 @@
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 @@
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}
};