diff options
author | Felipe Pena <felipe@php.net> | 2008-03-10 22:02:41 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-03-10 22:02:41 +0000 |
commit | cc2b17d51dbaa862eea98eb3b49a83a7227fb36d (patch) | |
tree | 81d70f870bab150be8d5805b51710e82a7db9cc7 /Zend/zend_builtin_functions.c | |
parent | 725b31fc6cce293405d8c7875f2fdc657f9daccc (diff) | |
download | php-git-cc2b17d51dbaa862eea98eb3b49a83a7227fb36d.tar.gz |
MFH: 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 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 2085435e08..3f1feda61a 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1182,8 +1182,8 @@ ZEND_FUNCTION(crash) ZEND_FUNCTION(get_included_files) { char *entry; - if (ZEND_NUM_ARGS() != 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } array_init(return_value); @@ -1394,8 +1394,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); @@ -1410,8 +1410,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); @@ -1446,8 +1446,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); @@ -1763,8 +1763,8 @@ ZEND_FUNCTION(debug_print_backtrace) zval *arg_array = NULL; int indent = 0; - if (ZEND_NUM_ARGS()) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } ptr = EG(current_execute_data); |