From: Nikita Popov Date: Mon, 6 Apr 2020 09:41:44 +0000 (+0200) Subject: Inline a ZEND_NUM_ARGS() variable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e5fdef96ec213ab16ea9df16bd083338d0d1720;p=php Inline a ZEND_NUM_ARGS() variable --- diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 27912bbd10..a0ab20e943 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -346,12 +346,11 @@ PHP_FUNCTION(hash_init) { zend_string *algo, *key = NULL; zend_long options = 0; - int argc = ZEND_NUM_ARGS(); void *context; const php_hash_ops *ops; php_hashcontext_object *hash; - if (zend_parse_parameters(argc, "S|lS", &algo, &options, &key) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|lS", &algo, &options, &key) == FAILURE) { RETURN_THROWS(); }