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 d6509bf commit 12eb307Copy full SHA for 12eb307
ext/spl/spl_iterators.c
@@ -3180,8 +3180,7 @@ PHP_FUNCTION(iterator_to_array)
3180
if (Z_TYPE_P(obj) == IS_ARRAY) {
3181
if (use_keys) {
3182
RETURN_COPY(obj);
3183
- }
3184
- else {
+ } else {
3185
zend_array *arrval;
3186
zend_long arrlen;
3187
zval *entry;
@@ -3203,8 +3202,7 @@ PHP_FUNCTION(iterator_to_array)
3203
3202
} ZEND_HASH_FOREACH_END();
3204
} ZEND_HASH_FILL_END();
3205
}
3206
3207
3208
array_init(return_value);
3209
spl_iterator_apply(obj, use_keys ? spl_iterator_to_array_apply : spl_iterator_to_values_apply, (void*)return_value);
3210
0 commit comments