mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Fix passing NULL for hash expiry argument
The stubs specify `?string $mode = NULL` but we were using `Z_PARAM_STR` causing an arginfo mismatch. Fixes #2674
This commit is contained in:
committed by
Michael Grunder
parent
340f23b082
commit
ca80ee0e67
+1
-1
@@ -4999,7 +4999,7 @@ int redis_hexpire_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
|
||||
Z_PARAM_LONG(ttl)
|
||||
Z_PARAM_ARRAY_HT(fields)
|
||||
Z_PARAM_OPTIONAL
|
||||
Z_PARAM_STR(option)
|
||||
Z_PARAM_STR_OR_NULL(option)
|
||||
ZEND_PARSE_PARAMETERS_END_EX(return FAILURE);
|
||||
|
||||
if (zend_hash_num_elements(fields) < 1) {
|
||||
|
||||
Reference in New Issue
Block a user