Description:
I've taken the example feed RSS 0.90 feed from
http://www.rssboard.org/rss-0-9-0
The Feed component should not try to parse it as RSS 1.0 feed but rather throw an exception. Or sb. could write a RSS 0.90 parser. :-)
Environment:
Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):
Steps to Reproduce:
<?php
$xml = <<<EOT
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://channel.netscape.com/rdf/simple/0.9/">
<channel>
<title>Mozilla Dot Org</title>
<link>http://www.mozilla.org</link>
<description>the Mozilla Organization
web site</description>
</channel>
<image>
<title>Mozilla</title>
<url>http://www.mozilla.org/images/moz.gif</url>
<link>http://www.mozilla.org</link>
</image>
<item>
<title>New Status Updates</title>
<link>http://www.mozilla.org/status/</link>
</item>
</rdf:RDF>
EOT;
require_once '/var/checkouts/ezcomponents/trunk/Base/src/ezc_bootstrap.php';
$feed = ezcFeed::parseContent( $xml );
var_dump( $feed->item );
var_dump( $feed->getFeedType() );
|
|