From: Ilia Alshanetsky Date: Tue, 3 Jan 2006 20:13:31 +0000 (+0000) Subject: MFB51: Added param checks for ap2 fetch respose/request header functions. X-Git-Tag: RELEASE_1_0_4~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7e0bef1060ce5b1ff4b579887cf6d08e218be96;p=php MFB51: Added param checks for ap2 fetch respose/request header functions. --- 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);