mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
MFH: New way for check void parameters
This commit is contained in:
parent
cc2b17d51d
commit
84a8bb038a
40 changed files with 226 additions and 228 deletions
|
@ -179,8 +179,8 @@ PHP_FUNCTION(apache_request_headers)
|
|||
const apr_array_header_t *arr;
|
||||
char *key, *val;
|
||||
|
||||
if (ZEND_NUM_ARGS()) {
|
||||
WRONG_PARAM_COUNT;
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
array_init(return_value);
|
||||
|
@ -203,8 +203,8 @@ PHP_FUNCTION(apache_response_headers)
|
|||
const apr_array_header_t *arr;
|
||||
char *key, *val;
|
||||
|
||||
if (ZEND_NUM_ARGS()) {
|
||||
WRONG_PARAM_COUNT;
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
array_init(return_value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue