|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-25 15:01 UTC] rrichards@php.net
[2005-02-25 15:08 UTC] ppetermann at vivaplus dot tv
[2005-02-25 20:39 UTC] rrichards@php.net
[2005-03-02 10:43 UTC] ppetermann at vivaplus dot tv
[2005-03-02 13:36 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 00:00:01 2025 UTC |
Description: ------------ doing a foreach loop on: $dom->documentElement->childNode causes an Fatal Error: Fatal error: Cannot access undefined property for object with overloaded property access in FILE on line LINENUMBEROFFOREACH this didnt happen in PHP5 <= 5.0.3 Reproduce code: --------------- <?php $dom = new DomDocument(); $dom->load("xmlfile.xml); foreach($dom->documentElement->childNode as $node) { echo "foo\n"; } ?> Expected result: ---------------- a foo\n for each childnode of the document element Actual result: -------------- Fatal error: Cannot access undefined property for object with overloaded property access in /foo/bar/myfile.php on line 4