note 86650 added to class.domnodelist
| From: | yevaud at wp dot pl | Date: | Tue, 28 Oct 2008 14:55:20 +0000 |
| Subject: | note 86650 added to class.domnodelist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145879@lists.php.net to get a copy of this message | ||
PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cli)
I got error here:
foreach ($doc->documentElement->firstChild->childNodes as $child)
foreach($child->childNodes as $child2)
{
}
Ok here:
foreach ($doc->documentElement->firstChild->childNodes as $index => $child)
foreach($doc->documentElement->firstChild->childNodes->
index($index)->childNodes as $child2)
{
}
wtf ?
----
Server IP: 82.177.164.100
Probable Submitter: 82.210.140.161
----
Manual Page -- http://www.php.net/manual/en/class.domnodelist.php
Edit -- https://master.php.net/note/edit/86650
Del: integrated -- https://master.php.net/note/delete/86650/integrated
Del: useless -- https://master.php.net/note/delete/86650/useless
Del: bad code -- https://master.php.net/note/delete/86650/bad+code
Del: spam -- https://master.php.net/note/delete/86650/spam
Del: non-english -- https://master.php.net/note/delete/86650/non-english
Del: in docs -- https://master.php.net/note/delete/86650/in+docs
Del: other reasons-- https://master.php.net/note/delete/86650
Reject -- https://master.php.net/note/reject/86650
Search -- https://master.php.net/manage/user-notes.php