php-src/ext/dom
Nikita Popov ff19ec2df3 Introduce InternalIterator
Userland classes that implement Traversable must do so either
through Iterator or IteratorAggregate. The same requirement does
not exist for internal classes: They can implement the internal
get_iterator mechanism, without exposing either the Iterator or
IteratorAggregate APIs. This makes them usable in get_iterator(),
but incompatible with any Iterator based APIs.

A lot of internal classes do this, because exposing the userland
APIs is simply a lot of work. This patch alleviates this issue by
providing a generic InternalIterator class, which acts as an
adapater between get_iterator and Iterator, and can be easily
used by many internal classes. At the same time, we extend the
requirement that Traversable implies Iterator or IteratorAggregate
to internal classes as well.

Closes GH-5216.
2020-06-24 15:31:41 +02:00
..
tests Improve error messages for invalid property access 2020-05-18 08:27:00 +02:00
attr.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
cdatasection.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
characterdata.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
comment.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
config.m4 [RFC] Implement new DOM Living Standard APIs in ext/dom 2020-02-28 16:13:39 +01:00
config.w32 [RFC] Implement new DOM Living Standard APIs in ext/dom 2020-02-28 16:13:39 +01:00
CREDITS
document.c Fix invalid usage of zend_bool in DOM extension 2020-06-06 17:19:00 +02:00
documentfragment.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
documenttype.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
dom_ce.h Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
dom_iterators.c Add ZVAL_OBJ_COPY macro 2020-06-17 16:36:56 +02:00
dom_properties.h Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
domexception.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
domexception.h Generate method entries for ext/dom 2020-04-13 00:13:11 +02:00
domimplementation.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
element.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
entity.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
entityreference.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
namednodemap.c Introduce InternalIterator 2020-06-24 15:31:41 +02:00
node.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
nodelist.c Introduce InternalIterator 2020-06-24 15:31:41 +02:00
notation.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
parentnode.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
php_dom_arginfo.h Introduce InternalIterator 2020-06-24 15:31:41 +02:00
php_dom.c Introduce InternalIterator 2020-06-24 15:31:41 +02:00
php_dom.h Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
php_dom.stub.php Introduce InternalIterator 2020-06-24 15:31:41 +02:00
processinginstruction.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
text.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00
xml_common.h Remove DOM_GET_THIS macro 2020-03-09 09:56:22 +01:00
xpath.c Fix [-Wundef] warning in DOM extension 2020-05-16 15:31:15 +02:00