Skip Menu |

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

Report information
The Basics
Id: 65004
Status: resolved
Priority: 0/
Queue: XML-FeedPP

People
Owner: Nobody in particular
Requestors: niceperl [...] cpan.org
Cc:
AdminCc:

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



Sometimes, if you use a non-feed URL, the parser crashes without throwing an exception. I attach an example
Subject: test_xml_feedpp.pl
use strict; use XML::FeedPP; my $source = 'http://yahoo.es'; eval { my $feed = XML::FeedPP->new( $source, -type=>'url' ); print "Title: ", $feed->title(), "\n"; print "Date: ", $feed->pubDate(), "\n"; foreach my $item ( $feed->get_item() ) { print "URL: ", $item->link(), "\n"; print "Title: ", $item->title(), "\n"; } }; if($@) { print "ERROR: $@\n" }
Cannot be reproduced anymore, Probably resolved in XML::TreePP