From: Martin dot Honnen at arcor dot de
Operating system: Windows XP
PHP version: 4.3.3
PHP Bug Type: DOM XML related
Bug description: DomDocument->get_elements_by_tagname('tagName') doesn't find
elements
Description:
------------
Testing with PHP 4.3.3 on Windows and DOMXML setup as
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20507
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.0.30
libxslt compiled against libxml Version 2.5.7
I encounter a problem with get_elements_by_tagname called on the document
node, it doesn't find elements in the document.
Example XML document is at
http://home.arcor.de/martin.honnen/phpBugs/domxml/xhtmlExample1.xml
a test PHP program demonstrating the problem is at
http://home.arcor.de/martin.honnen/phpBugs/domxml/get_elements_by_tagnameTest1.php
Reproduce code:
---------------
http://home.arcor.de/martin.honnen/phpBugs/domxml/get_elements_by_tagnameTest1.php
Expected result:
----------------
The test program calls get_elements_by_tagname on the document node and
calls the method again on the documentElement node, both calls should find
the same elements (and number of elements, in the example one element).
Actual result:
--------------
get_elements_by_tagname called on the document node doesn't find any
elements while the method called on the documentElement node finds one
element.
--
Edit bug report at http://bugs.php.net/?id=25900&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25900&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25900&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25900&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25900&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25900&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25900&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25900&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25900&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25900&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25900&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25900&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25900&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25900&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25900&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25900&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25900&r=float