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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mtaylor at esshc dot com
New email:
PHP Version: OS:

 

 [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: Wed Apr 24 22:01:30 2024 UTC