diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-01-03 20:13:07 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-01-03 20:13:07 +0000 |
commit | fb91408a173d7f0cf91e97efd58cbfcb4bd1b2fc (patch) | |
tree | 9fad53429ec2ec33f8d9cf3066d4dbeb6d35adeb /sapi/apache2handler/php_functions.c | |
parent | 22f4a0514999f3d4a94af6cab44754ffffeb7231 (diff) | |
download | php-git-fb91408a173d7f0cf91e97efd58cbfcb4bd1b2fc.tar.gz |
Added param checks for ap2 fetch respose/request header functions.
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
-rw-r--r-- | sapi/apache2handler/php_functions.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |