summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/php_functions.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-10 22:15:36 +0000
committerFelipe Pena <felipe@php.net>2008-03-10 22:15:36 +0000
commit84a8bb038a26e254d6608662b16c254920388913 (patch)
treeb57b590da90a01ff306fbef1a6baa794ebe0571e /sapi/apache2handler/php_functions.c
parentcc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff)
downloadphp-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz
MFH: New way for check void parameters
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
-rw-r--r--sapi/apache2handler/php_functions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c
index a1e29289fc..8f165c1577 100644
--- a/sapi/apache2handler/php_functions.c
+++ b/sapi/apache2handler/php_functions.c
@@ -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);