diff options
| author | Felipe Pena <felipe@php.net> | 2008-02-28 14:16:25 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-02-28 14:16:25 +0000 |
| commit | a1e8d340c3fe0c889146332fe2e2b70a11980685 (patch) | |
| tree | 07b90a28be336f68ccdd644d73739163573e292f /ext/standard/basic_functions.c | |
| parent | 8e08965be64607704315293c6bea73c434ace5f3 (diff) | |
| download | php-git-a1e8d340c3fe0c889146332fe2e2b70a11980685.tar.gz | |
New macro for check void parameters
Diffstat (limited to 'ext/standard/basic_functions.c')
| -rw-r--r-- | ext/standard/basic_functions.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 07d47841cf..ac61813713 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4828,8 +4828,8 @@ PHP_FUNCTION(time_sleep_until) Get the name of the owner of the current PHP script */ PHP_FUNCTION(get_current_user) { - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } RETURN_RT_STRING(php_get_current_user(), ZSTR_DUPLICATE); @@ -5055,7 +5055,7 @@ PHPAPI char *php_get_current_user(void) /* {{{ */ Get the last occurred error as associative array. Returns NULL if there hasn't been an error yet. */ PHP_FUNCTION(error_get_last) { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) { + if (zend_parse_parameters_none() == FAILURE) { return; } @@ -5804,7 +5804,7 @@ PHP_FUNCTION(get_include_path) { char *str; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) { + if (zend_parse_parameters_none() == FAILURE) { return; } @@ -5822,7 +5822,7 @@ PHP_FUNCTION(get_include_path) Restore the value of the include_path configuration option */ PHP_FUNCTION(restore_include_path) { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) { + if (zend_parse_parameters_none() == FAILURE) { return; } zend_restore_ini_entry("include_path", sizeof("include_path"), PHP_INI_STAGE_RUNTIME); |
