diff options
author | Felipe Pena <felipe@php.net> | 2008-03-10 22:15:36 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-03-10 22:15:36 +0000 |
commit | 84a8bb038a26e254d6608662b16c254920388913 (patch) | |
tree | b57b590da90a01ff306fbef1a6baa794ebe0571e /ext/standard/basic_functions.c | |
parent | cc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff) | |
download | php-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz |
MFH: New way for check void parameters
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 72b2081913..8a9faed615 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1,3 +1,4 @@ + /* +----------------------------------------------------------------------+ | PHP Version 5 | @@ -4866,8 +4867,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_STRING(php_get_current_user(), 1); |