#31917 [Bgs]: get_elements_by_tag_name() wildcard fails [again]

From: Date: Thu, 10 Feb 2005 21:39:24 +0000
Subject: #31917 [Bgs]: get_elements_by_tag_name() wildcard fails [again]
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73789@lists.php.net to get a copy of this message
 ID:               31917
 User updated by:  mtaylor at esshc dot com
 Reported By:      mtaylor at esshc dot com
 Status:           Bogus
 Bug Type:         DOM XML related
 Operating System: XP
 PHP Version:      5.0.3
 New Comment:

rrichards@php.net:
> You're trying to use domxml and not dom under PHP 5?

Yes; 3rd party library recommendation.  I'll check if the new stuff can
be substituted in without breakage.

Thanks -mct


Previous Comments:
------------------------------------------------------------------------

[2005-02-10 20:27:10] 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.




------------------------------------------------------------------------

[2005-02-10 20:26:58] rrichards@php.net

You're trying to use domxml and not dom under PHP 5?

------------------------------------------------------------------------

[2005-02-10 20:04:04] 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.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31917&edit=1


Thread (4 messages)

« previous php.bugs (#73789) next »