|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51721 Patch: mark DOMNodeList and DOMNamedNodeMap as Traversable
Submitted: 2010-05-02 13:03 UTC Modified: 2010-05-04 14:56 UTC
Avg. Score:5.0 ± 0.0
Reproduced:10 of 10 (100.0%)
Same Version:10 (100.0%)
Same OS:10 (100.0%)
From: david dot zuelke at bitextender dot com Assigned: rrichards (profile)
Status: Closed Package: DOM XML related
PHP Version: 5.3.2 OS: Mac OS X 10.5.8
Private report: No CVE-ID: None
 [2010-05-02 13:03 UTC] david dot zuelke at bitextender dot com
DOMNodeList and DOMNamedNodeMap do not implement the interface Traversable even 
though they can be iterated over just fine. Minor fix. Patch attached.

Test script:

var_dump((new DOMNodeList) instanceof Traversable, (new DOMNamedNodeMap) instanceof Traversable);


Expected result:

Actual result:


Traversable_DOMNodeList_DOMNamedNodeMap (last revision 2010-05-02 15:57 UTC by david dot zuelke at bitextender dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-04 14:55 UTC]
Automatic comment from SVN on behalf of rrichards
Log: fix bug #51721 (mark DOMNodeList and DOMNamedNodeMap as Traversable)
 [2010-05-04 14:56 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: rrichards
 [2010-05-04 14:56 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 02:01:25 2023 UTC