mirror of
https://github.com/php/php-src.git
synced 2026-04-20 22:41:20 +02:00
Fixed typo in previous commit
This commit is contained in:
@@ -176,10 +176,9 @@ ZEND_API zval *zend_user_it_get_current_data(zend_object_iterator *_iter TSRMLS_
|
||||
zend_user_iterator *iter = (zend_user_iterator*)_iter;
|
||||
zval *object = &iter->it.data;
|
||||
|
||||
if (!ZVAL_IS_UNDEF(&iter->value)) {
|
||||
if (ZVAL_IS_UNDEF(&iter->value)) {
|
||||
zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs.zf_current, "current", &iter->value);
|
||||
}
|
||||
|
||||
}
|
||||
return &iter->value;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user