diff options
| author | Felipe Pena <felipe@php.net> | 2008-02-28 13:30:43 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-02-28 13:30:43 +0000 |
| commit | 8e08965be64607704315293c6bea73c434ace5f3 (patch) | |
| tree | df7215aa6674a7e328d8b03dc0983a05bb637441 /Zend/zend_builtin_functions.c | |
| parent | cfcfbb24da26d9c96d6fc62947b4432bef2d40cf (diff) | |
| download | php-git-8e08965be64607704315293c6bea73c434ace5f3.tar.gz | |
Added new macro for check void parameters.
(deprecating ZEND_WRONG_PARAM_COUNT for this cases)
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 0967a89d91..3e3ebec1f6 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1188,8 +1188,8 @@ ZEND_FUNCTION(get_included_files) unsigned int len; int ustr_len; - if (ZEND_NUM_ARGS() != 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } array_init(return_value); @@ -1402,8 +1402,8 @@ ZEND_FUNCTION(get_declared_classes) zend_uint mask = ZEND_ACC_INTERFACE; zend_uint comply = 0; - if (ZEND_NUM_ARGS() != 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } array_init(return_value); @@ -1418,8 +1418,8 @@ ZEND_FUNCTION(get_declared_interfaces) zend_uint mask = ZEND_ACC_INTERFACE; zend_uint comply = 1; - if (ZEND_NUM_ARGS() != 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } array_init(return_value); @@ -1463,8 +1463,8 @@ ZEND_FUNCTION(get_defined_functions) zval *internal; zval *user; - if (ZEND_NUM_ARGS() != 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } MAKE_STD_ZVAL(internal); |
