Inline a ZEND_NUM_ARGS() variable

This commit is contained in:
Nikita Popov 2020-04-06 11:41:44 +02:00
parent 9cb32640af
commit 3e5fdef96e

View file

@ -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();
}