From 3e5fdef96ec213ab16ea9df16bd083338d0d1720 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 6 Apr 2020 11:41:44 +0200 Subject: [PATCH] Inline a ZEND_NUM_ARGS() variable --- ext/hash/hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } -- 2.40.0