#40175 [NEW]: Problems in DOM XML hierarchy
| From: | galvao at galvao dot eti dot br | Date: | Fri, 19 Jan 2007 19:44:46 +0000 |
| Subject: | #40175 [NEW]: Problems in DOM XML hierarchy | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-107792@lists.php.net to get a copy of this message | ||
From: galvao at galvao dot eti dot br
Operating system: All
PHP version: 5.2.0
PHP Bug Type: DOM XML related
Bug description: Problems in DOM XML hierarchy
Description:
------------
The childNodes function returns a DOMNodeList, but while iterating over it
I find DOMTexts and DOMElements, instead of DOMNodes.
Reproduce code:
---------------
XML: http://pastebin.ca/321816
PHP: http://pastebin.ca/321822
Expected result:
----------------
object(DOMNode)#x (0) {
}
object(DOMNode)#x (0) {
}
Where 'x' is a number.
Actual result:
--------------
object(DOMText)#x (0) {
}
object(DOMElement)#x (0) {
}
--
Edit bug report at http://bugs.php.net/?id=40175&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40175&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40175&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40175&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40175&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40175&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40175&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40175&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40175&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40175&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40175&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40175&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40175&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40175&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40175&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40175&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40175&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40175&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40175&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40175&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40175&r=mysqlcfg