Home » XML » XML_RSS » Bug #4146
The 'd' in pubDate should be capitalized
Details
| Submitted | 2005-04-14 15:47 UTC |
|---|---|
| From | jonathan at jkdwebmagic dot com |
| Status | Wont fix |
| Package | XML_RSS |
| PHP Version | Irrelevant |
| OS | Linux |
| 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']