Skip Menu |

This queue is for tickets about the XML-LibXML-Iterator CPAN distribution.

Report information
The Basics
Id: 29262
Status: resolved
Worked: 2 hours (120 min)
Priority: 0/
Queue: XML-LibXML-Iterator

People
Owner: Nobody in particular
Requestors: seb [...] ssr.univ-paris-diderot.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: bug in XML-LibXML-Iterator-1.03's XML::LibXML::NodeList::Iterator::iterate()
Date: Sun, 9 Sep 2007 20:44:56 +0200
To: bug-XML-LibXML-Iterator [...] rt.cpan.org
From: Stoned Elipot <seb [...] ssr.univ-paris-diderot.fr>
Hi, I think there a little bug in XML-LibXML-Iterator-1.03's XML::LibXML::NodeList::Iterator::iterate(): nodes are not passed down the sub called by iterate(). Attached you will find a test case and a patch (modelled after XML::LibXML::Iterator::iterate()'s code). Cheers, Stoned. $uname -a NetBSD runabout 4.99.25 NetBSD 4.99.25 (RUNABOUT) #6: Tue Jul 24 18:25:29 CEST 2007 seb@runabout:/u/seb/RUNABOUT/kernel/compile/RUNABOUT i386 $perl -v This is perl, v5.8.8 built for i386-netbsd-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. $perl -e 'use XML::LibXML::NodeList::Iterator; print "$XML::LibXML::NodeList::Iterator::VERSION\n";' 1.03 $

Message body is not shown because sender requested not to inline it.

I fixed the problem, included a simplified version of the test. The fixed version is available as Version 1.04 at CPAN.