mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
Fixed refcount asseration
This commit is contained in:
parent
8558dc8eaf
commit
19045f0d27
@ -3487,7 +3487,9 @@ static int spl_iterator_to_values_apply(zend_object_iterator *iter, void *puser
|
||||
if (data == NULL) {
|
||||
return ZEND_HASH_APPLY_STOP;
|
||||
}
|
||||
Z_ADDREF_P(data);
|
||||
if (Z_REFCOUNTED_P(data)) {
|
||||
Z_ADDREF_P(data);
|
||||
}
|
||||
add_next_index_zval(return_value, data);
|
||||
return ZEND_HASH_APPLY_KEEP;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user