php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20955 Bad Language Setting in RSS news feed
Submitted: 2002-12-12 07:37 UTC Modified: 2002-12-29 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: llopez at xinergiaargentina dot com Assigned:
Status: No Feedback Package: Website problem
PHP Version: 4.3.0RC3 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-12-12 07:37 UTC] llopez at xinergiaargentina dot com
The RSS feed at http://www.php.net/news.rss doesn't specify correctly the language of the feed. You must use the Dublin Core module, which includes a <language> tag.

The feed at syndic8.com is located here:
http://www.syndic8.com/feedinfo.php?FeedID=20991

If you need help contact me and I'll be glad to help you, bye

inkel

PS: excuse my english, I'm from Argentina

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-13 01:42 UTC] goba@php.net
We *must* add the language attribute???? The RSS validator on that page you qoute says our RSS is valid ;) AFAIK an RSS using no modules is absolutely valid (as well as it is easier to parse it for simple regexp based parsers). 
 [2002-12-13 07:01 UTC] llopez at xinergiaargentina dot com
No, it isn't necessary to include <dc:date>. However, at Syndic8.com we try to review feeds for information we think it's useful to readers & people, and including <dc:date> is one of this things.

As you say, it's easier to parse with a regex based parser, but XML *it is not text* so there's no reason why you should use a regex parser, the best thing to do is parse the data with an XML parser.

For example, a _valid_ RSS 1.0 feed may contain an item like this:

<item rdf:about='http://example.org/article1.html'>
<link>http://example.org/article1.html</link>
<title>Example Article N. 1</title>
</item>

But this *is valid* too:

<rss:item rdf:about='http://example.org/article1.html'
    xmlns:rss='http://purl.org/rss/1.0/'>
<rss:link>http://example.org/article1.html</rss:link>
<rss:title>Example Article N. 1</rss:title>
</rss:item>

And with this you regex parser won't work.

Bye!

inkel

ps: any ideas about why I can't get the password I set for this bug report?
 [2002-12-13 14:39 UTC] goba@php.net
OK, OK, I never said that those examples are not valid. You submitted a bug saying, that we "must" use the Dublin core module. As your English may not be correct, I assume now, you have not intended to say "must", but something like "would ideally".

Well, I don't really think so, that we "need to bloat" the RSS file with "too much" meta information. What the other guys think about this?
 [2002-12-29 01:00 UTC] php-mirrors at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC