PEAR is archived and read-only

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

Home » XML » XML_Feed_Parser » Bug #8445

Typo and unreachable code

Details

Request #8445Typo and unreachable code
Submitted2006-08-15 12:52 UTC
Fromstefanvalouch at googlemail dot com
Assignedjystewart
StatusClosed
PackageXML_Feed_Parser
PHP Version5.1.4
OSDebian/GNU Linux Etch
Roadmaps(Not assigned)

Comments

[2006-08-15 12:52 UTC] stefanvalouch at googlemail dot com

Description:
------------
Hi, there is a typo in XML/Feed/Parser/Type.php
Line: 53:
* Peoxy to allow use of element names as method names
should be:
* Proxy to allow use of element names as method names

then, there is unreachable code in the same file, function combineBases() line 158:
[...]
return $base . $link;
}
return $combinedBase; //<--- this return cannever be reached...
}

File: XML/Feed/Parser.php line :
function getEntryById()
[...]
return $this->feed->getEntryById($id);

return false; //<-- unreachable
[...]

HTH
Stefan

[2006-08-15 13:02 UTC] jystewart at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.