|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-22 23:43 UTC] tony2001@php.net
[2005-11-23 04:14 UTC] rrichards@php.net
[2005-11-23 08:39 UTC] bjori@php.net
[2005-11-23 09:23 UTC] bjori@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ isset($DOMNodeList->length) seems to return false, all the time. Reproduce code: --------------- <?php $DOMDocument = new DOMDocument; $DOMDocument->loadXML("<root><foo>foobar</foo><foo>foobar#2</foo></root>"); $DOMNodeList = $DOMDocument->getElementsByTagName("foo"); var_dump($DOMNodeList->length, isset($DOMNodeList->length)); ?> Expected result: ---------------- int(2) bool(true) Actual result: -------------- int(2) bool(false)