We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08735e commit defa343Copy full SHA for defa343
ext/spl/spl_iterators.c
@@ -3204,7 +3204,7 @@ PHP_FUNCTION(iterator_zip)
3204
if (UNEXPECTED(!zend_is_iterable(&argv[i]))) {
3205
for (uint32_t j = 0; j < i; j++) {
3206
spl_zip_iterator_entry *current = &iterators[i];
3207
- if (current->hash_position_or_tag == UINT32_MAX) {
+ if (spl_zip_iterator_is_obj_entry(current)) {
3208
zend_iterator_dtor(current->obj_iter);
3209
} else {
3210
Z_TRY_DELREF_P(&argv[j]);
ext/spl/tests/iterator_zip.phpt
@@ -3,7 +3,7 @@ iterator_zip
3
--FILE--
4
<?php
5
6
-foreach (iterator_zip() as $_) {} // FIXME
+foreach (iterator_zip() as $_) {}
7
8
foreach (iterator_zip([]) as $x) {
9
var_dump($x);
0 commit comments