Skip to content

Commit 43a39af

Browse files
committed
Duplicate zval before add_next_index_zval
1 parent d67e360 commit 43a39af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redis_array.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,8 @@ PHP_METHOD(RedisArray, mget)
889889

890890
for(i = 0; i < argc; ++i) {
891891
if (pos[i] == n) {
892-
add_next_index_zval(&z_arg, argv[i]);
892+
ZVAL_ZVAL(&z_ret, argv[i], 1, 0);
893+
add_next_index_zval(&z_arg, &z_ret);
893894
}
894895
}
895896

0 commit comments

Comments
 (0)