From dfde69722227f1442aac880d4aaa35acc281339c Mon Sep 17 00:00:00 2001 From: CismonX Date: Mon, 22 Oct 2018 20:25:54 +0800 Subject: [PATCH] fix bug --- src/collections_methods.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/collections_methods.c b/src/collections_methods.c index 55f30f0..4780299 100644 --- a/src/collections_methods.c +++ b/src/collections_methods.c @@ -3307,6 +3307,7 @@ PHP_METHOD(Collection, windowed) break; } Bucket* bucket = start + pos + snapshot_idx; + Z_TRY_ADDREF(bucket->val); zend_hash_next_index_insert(snapshot, &bucket->val); } if (has_transform) {