PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_RSS » Bug #4146

The 'd' in pubDate should be capitalized

Details

Submitted2005-04-14 15:47 UTC
Fromjonathan at jkdwebmagic dot com
StatusWont fix
PackageXML_RSS
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2005-04-14 15:47 UTC] jonathan at jkdwebmagic dot com

Description:
------------
The $rss->getItems function returns 'pubdate' instead of 'pubDate'.

According to RSS 2.0 specifications, the 'd' in pubDate should be uppercase. (http://feedvalidator.org/docs/rss2.html)

Reproduce code:
---------------
foreach ($rss->getItems() as $item) {
print_r($item,true);
}

Expected result:
----------------
I expect $rss->getItems to return $item['pubDate'].

Actual result:
--------------
$rss->getItems returns $item['pubdate']