Edit report at http://bugs.php.net/bug.php?id=51721&edit=1
ID: 51721 Updated by: rricha...@php.net Reported by: david dot zuelke at bitextender dot com Summary: Patch: mark DOMNodeList and DOMNamedNodeMap as Traversable -Status: Open +Status: Closed Type: Feature/Change Request Package: DOM XML related Operating System: Mac OS X 10.5.8 PHP Version: 5.3.2 -Assigned To: +Assigned To: rrichards New Comment: 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 http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2010-05-04 14:55:28] rricha...@php.net Automatic comment from SVN on behalf of rrichards Revision: http://svn.php.net/viewvc/?view=revision&revision=298967 Log: fix bug #51721 (mark DOMNodeList and DOMNamedNodeMap as Traversable) ------------------------------------------------------------------------ [2010-05-02 13:03:27] david dot zuelke at bitextender dot com Description: ------------ DOMNodeList and DOMNamedNodeMap do not implement the interface Traversable even though they can be iterated over just fine. Minor fix. Patch attached. Test script: --------------- <?php var_dump((new DOMNodeList) instanceof Traversable, (new DOMNamedNodeMap) instanceof Traversable); ?> Expected result: ---------------- bool(true) bool(true) Actual result: -------------- bool(false) bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51721&edit=1