virtual vs apache_sub_req
| From: | Doug MacEachern | Date: | Thu, 06 Dec 2001 01:01:04 +0000 |
| Subject: | virtual vs apache_sub_req | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-72706@lists.php.net to get a copy of this message | ||
any reason why the 2.0 version shouldn't be the same name as the 1.3
version?
same with get_all_headers vs getallheaders
Index: sapi/apache2filter/php_functions.c
===================================================================
RCS file: /repository/php4/sapi/apache2filter/php_functions.c,v
retrieving revision 1.13
diff -u -r1.13 php_functions.c
--- sapi/apache2filter/php_functions.c 6 Dec 2001 00:53:58 -0000 1.13
+++ sapi/apache2filter/php_functions.c 6 Dec 2001 00:55:39 -0000
@@ -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;
@@ -106,9 +106,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;
@@ -134,8 +134,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}
};