ZF-8330: Zend_Feed_Reader::findFeedLinks() doesn't handle relative feed URIs

Description

Zend_Feed_Reader::findFeedLinks() doesn't handle relative feed URIs:

Code:


print_r(Zend_Feed_Reader::findFeedLinks('http://meiobit.com'));

Output:


stdClass Object
(
    [rss] => /rss.xml
)

Expected:


stdClass Object
(
    [rss] => http://meiobit.com/rss.xml
)

Comments

Fixed in r19103.

This will still fail on uri's with paths, ie.:

http://example.com/sub:

or

http://example.com/sub:

Attached patches fixing the uri with paths (reason for reopening the issue)

Patches applied in r19136.

On a separate note - very good catch!