PEAR is archived and read-only

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

Home » Web Services » Services_Technorati » Bug #5517

blogInfo method fix

Details

Submitted2005-09-25 22:14 UTC
Frompear at sweeting dot org
Assignedjystewart
StatusClosed
PackageServices_Technorati
PHP Version4.3.10
OSWin XP Pro/Linux
Roadmaps(Not assigned)

Comments

[2005-09-25 22:14 UTC] pear at sweeting dot org

Description:
------------
I'm using version 0.6.5 beta of Services_Technorati.

The blogInfo method is wrong. I have supplied a fix (see below).

The blogInfo method is a duplicate of the getInfo method. This introduces errors.

I have updated the getInfo method as follows, and it seems to work correctly now:

function blogInfo($url)
{
$options =array('url' => $url);
return $this->_general("bloginfo", $options,
array(), false);
}

The problems were:
1) URL encoding the URL parameter was confusing technorati

2) The first parameter to _general() was wrong. It used to be 'getinfo', but it should have been 'bloginfo'.

Test script:
---------------
The following fails:

print_r($ws->blogInfo('http://www.sweeting.org/mark/blog'));

[2005-09-25 22:23 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.