Skip to content

Commit

Permalink
Merge pull request #203 from nielsdos/fix-2
Browse files Browse the repository at this point in the history
Fix #193: Passing array item by reference breaks \DS\Set behaviour
  • Loading branch information
rtheunissen committed Dec 19, 2023
2 parents ddac1ba + 28e6f6a commit 5cffb47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ds/ds_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static inline void add_array_to_set(ds_set_t *set, HashTable *array)
{
zval *value;
ZEND_HASH_FOREACH_VAL(array, value) {
ZVAL_DEREF(value);
ds_set_add(set, value);
}
ZEND_HASH_FOREACH_END();
Expand Down

0 comments on commit 5cffb47

Please sign in to comment.