PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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']