diff options
Diffstat (limited to 'ext/mhash')
-rw-r--r-- | ext/mhash/mhash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c index e630b7c392..d6ad84c7cf 100644 --- a/ext/mhash/mhash.c +++ b/ext/mhash/mhash.c @@ -83,6 +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; + RETURN_LONG(mhash_count()); } |