From:             gab dot s at freemail dot hu
Operating system: Debian Linux
PHP version:      4.3.4
PHP Bug Type:     DOM XML related
Bug description:  get_elements_by_tagnem

Description:
------------
OS: Debian, Linux kernel 2.4.18-bf2.4
Version: 4.3.4
libxml Version: 20506  

I have used the dom xml extension for a year, and
i have a piece of code where a find for nodes in an xml document.
It works with 4.3.2-rc2 and 4.3.2, but does not works with 4.3.4.

<?php
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Application>
        <first>
                data
        </first>
        <second>
                data2
        </second>
</Application>";

$xmldoc = domxml_open_mem($xml);

$root = $xmldoc->document_element();

$nodearray = $xmldoc->get_elements_by_tagname("/Application");

print_r($nodearray);

?>


On php version 4.3.2-rc2 and 4.3.2:

Expected result:

Array ( [0] => domelement Object ( [type] => 1 [tagname] => Application
[0] => 3 [1] => 135422608 ) ) 

Actual result:

Array ( [0] => domelement Object ( [type] => 1 [tagname] => Application
[0] => 3 [1] => 135422608 ) ) 



On php version 4.3.4

Expected result:

Array ( [0] => domelement Object ( [type] => 1 [tagname] => Application
[0] => 3 [1] => 135422608 ) ) 

Actual result:

Array ( ) 


-- 
Edit bug report at http://bugs.php.net/?id=26963&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26963&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26963&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26963&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26963&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26963&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26963&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26963&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26963&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26963&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26963&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26963&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26963&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26963&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26963&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26963&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26963&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26963&r=float

Reply via email to