mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Added param checks for ap2 fetch respose/request header functions.
This commit is contained in:
parent
22f4a05149
commit
fb91408a17
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue