summaryrefslogtreecommitdiff
path: root/ext/hash/hash.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-04-06 11:41:44 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-04-06 11:41:44 +0200
commit3e5fdef96ec213ab16ea9df16bd083338d0d1720 (patch)
tree8fbf15c87f2ae2221a46c40b4bb57887f8aa80a0 /ext/hash/hash.c
parent9cb32640afb23626920f3e31439310cb83e68550 (diff)
downloadphp-git-3e5fdef96ec213ab16ea9df16bd083338d0d1720.tar.gz
Inline a ZEND_NUM_ARGS() variable
Diffstat (limited to 'ext/hash/hash.c')
-rw-r--r--ext/hash/hash.c3
1 files changed, 1 insertions, 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();
}