php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31917 get_elements_by_tag_name() wildcard fails [again]
Submitted: 2005-02-10 20:04 UTC Modified: 2005-02-10 22:39 UTC
From: mtaylor at esshc dot com Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.0.3 OS: XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 + 1 = ?
Subscribe to this entry?

 
 [2005-02-10 20:04 UTC] mtaylor at esshc dot com
Description:
------------
Bug 26531 (http://bugs.php.net/bug.php?id=26531)
has resurfaced again in ver 5. 

 $whatever->get_elements_by_tagname("*");
returns null instead of the full list.

Also, I just downloaded the latest dll from snaps/pecl and confirmed that the issue hasn't already been found and fixed on the bleeding edge.  Thanks.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-10 20:26 UTC] rrichards@php.net
You're trying to use domxml and not dom under PHP 5?
 [2005-02-10 20:27 UTC] chregu@php.net
foreach($dom->getElementsByTagName("*") as $node) {    
        print ($node->localName);
}

Works for me...

And please keep in mind: 

To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. 

A proper reproducing script starts with, is max. 10-20 lines long and does not require any external resources such as databases, etc.

If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report.



 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 18:01:32 2024 UTC