Skip to content

Commit defa343

Browse files
committed
cleanup
1 parent d08735e commit defa343

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/spl/spl_iterators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3204,7 +3204,7 @@ PHP_FUNCTION(iterator_zip)
32043204
if (UNEXPECTED(!zend_is_iterable(&argv[i]))) {
32053205
for (uint32_t j = 0; j < i; j++) {
32063206
spl_zip_iterator_entry *current = &iterators[i];
3207-
if (current->hash_position_or_tag == UINT32_MAX) {
3207+
if (spl_zip_iterator_is_obj_entry(current)) {
32083208
zend_iterator_dtor(current->obj_iter);
32093209
} else {
32103210
Z_TRY_DELREF_P(&argv[j]);

ext/spl/tests/iterator_zip.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ iterator_zip
33
--FILE--
44
<?php
55

6-
foreach (iterator_zip() as $_) {} // FIXME
6+
foreach (iterator_zip() as $_) {}
77

88
foreach (iterator_zip([]) as $x) {
99
var_dump($x);

0 commit comments

Comments
 (0)