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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat May 04 07:01:31 2024 UTC