diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2001-08-13 07:55:39 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2001-08-13 07:55:39 +0000 |
commit | 4d11d90880e63aaf125d09140775efdb287b9704 (patch) | |
tree | 00ed223eb953c2286b1b557548fbc4f73000f55c /ext/mhash | |
parent | 5b2227ea80b0fc5be46bfbdd9dd5ce4ac7825717 (diff) | |
download | php-git-4d11d90880e63aaf125d09140775efdb287b9704.tar.gz |
Track down a few more functions that don't check for 0 args and use
faster mechanism
Diffstat (limited to 'ext/mhash')
-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()); } |