From fb91408a173d7f0cf91e97efd58cbfcb4bd1b2fc Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 3 Jan 2006 20:13:07 +0000 Subject: Added param checks for ap2 fetch respose/request header functions. --- sapi/apache2handler/php_functions.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sapi/apache2handler/php_functions.c') diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c index 2df54c5d45..1e9b60abef 100644 --- a/sapi/apache2handler/php_functions.c +++ b/sapi/apache2handler/php_functions.c @@ -179,6 +179,10 @@ PHP_FUNCTION(apache_request_headers) const apr_array_header_t *arr; char *key, *val; + if (ZEND_NUM_ARGS()) { + WRONG_PARAM_COUNT; + } + array_init(return_value); ctx = SG(server_context); @@ -199,6 +203,10 @@ PHP_FUNCTION(apache_response_headers) const apr_array_header_t *arr; char *key, *val; + if (ZEND_NUM_ARGS()) { + WRONG_PARAM_COUNT; + } + array_init(return_value); ctx = SG(server_context); -- cgit v1.2.1