mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Implement Traversable instead of Iterator.
This commit is contained in:
parent
fe5aac2f41
commit
589d28e429
1 changed files with 1 additions and 1 deletions
|
@ -366,9 +366,9 @@ void php_register_unicode_iterators(TSRMLS_D)
|
|||
|
||||
INIT_CLASS_ENTRY(ce, "TextIterator", text_iterator_funcs);
|
||||
text_iterator_ce = zend_register_internal_class(&ce TSRMLS_CC);
|
||||
zend_class_implements(text_iterator_ce TSRMLS_CC, 1, zend_ce_iterator);
|
||||
text_iterator_ce->create_object = text_iterator_new;
|
||||
text_iterator_ce->get_iterator = text_iter_get_iterator;
|
||||
zend_class_implements(text_iterator_ce TSRMLS_CC, 1, zend_ce_traversable);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue