Skip to content

Commit 09a26c2

Browse files
Fix assertion failure: SEPARATE_ARRAY before zend_hash_apply in dc_mask_cleanup
1 parent b1d07d5 commit 09a26c2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

deepclone.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ static void dc_mask_cleanup(zval *mask)
681681
if (Z_TYPE_P(mask) != IS_ARRAY) {
682682
return;
683683
}
684+
SEPARATE_ARRAY(mask);
684685
HashTable *mht = Z_ARRVAL_P(mask);
685686
zend_hash_apply(mht, dc_mask_cleanup_apply);
686687

0 commit comments

Comments
 (0)