Added param checks for ap2 fetch respose/request header functions.

This commit is contained in:
Ilia Alshanetsky 2006-01-03 20:13:07 +00:00
parent 22f4a05149
commit fb91408a17

View file

@ -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);