From 65831492d4db7e508207f87026ed30cf42568a15 Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Sat, 30 May 2026 17:57:42 +0300 Subject: [PATCH] deref scan iterator --- redis_cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis_cluster.c b/redis_cluster.c index 4133723f..88f224ee 100644 --- a/redis_cluster.c +++ b/redis_cluster.c @@ -2511,7 +2511,7 @@ static void cluster_kscan_cmd(INTERNAL_FUNCTION_PARAMETERS, ZEND_PARSE_PARAMETERS_START(2, 4) Z_PARAM_STRING(key, key_len) - Z_PARAM_ZVAL(z_it) + Z_PARAM_ZVAL_EX2(z_it, 0, 1, 0) Z_PARAM_OPTIONAL Z_PARAM_STRING_OR_NULL(pat, pat_len) Z_PARAM_LONG(count) @@ -2676,7 +2676,7 @@ PHP_METHOD(RedisCluster, scan) { } ZEND_PARSE_PARAMETERS_START(2, 4) - Z_PARAM_ZVAL(zcursor) + Z_PARAM_ZVAL_EX2(zcursor, 0, 1, 0) Z_PARAM_ZVAL(z_node) Z_PARAM_OPTIONAL Z_PARAM_STRING_OR_NULL(pat, pat_len)