diff options
Diffstat (limited to 'ext/mhash/mhash.c')
-rw-r--r-- | ext/mhash/mhash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c index d6ad84c7cf..68950f9bfc 100644 --- a/ext/mhash/mhash.c +++ b/ext/mhash/mhash.c @@ -83,8 +83,9 @@ static PHP_MINIT_FUNCTION(mhash) Gets the number of available hashes */ PHP_FUNCTION(mhash_count) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) - return; + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } RETURN_LONG(mhash_count()); } |