Bug #1895 [NEW]: pear search <term>
| From: | danielc at analysisandsolutions dot com | Date: | Fri, 16 Jul 2004 21:02:06 +0000 |
| Subject: | Bug #1895 [NEW]: pear search <term> | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-2803@lists.php.net to get a copy of this message | ||
From: danielc at analysisandsolutions dot com
Operating system: Irrelevant
PHP version: Irrelevant
Package: Web Site
Bug Type: Bug
Bug description: pear search <term>
Description:
------------
Matthew Weier O'Phinney posted on pear-general, and then Norbert Mocsnik
forwarded to pear-dev the following issue.
> I get the following when I run a 'pear search xxx':
>
> Warning: Invalid argument supplied for foreach() in Remote.php on line
263
> no packages found
Line 263 is part of the the doSearch() method in
pear/PEAR/Command/Remote.php. That line is
foreach ($available as $name => $info) {
$available comes from:
$r = new PEAR_Remote($this->config);
$available = $r->call('package.listAll', true, false);
call() then invokes XML RPC and caching, passing 'package.listAll' to a
new XML_RPC_Message object that then gets passed to
XML_RPC_Client::send().
Something along the way is returning bad info for some reason. Then the
error isn't being handled properly before being passed to the foreach.
Both issues need addressing. I'll leave resolving these matters up to the
folks who are more familliar with the inner workings of all this.
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=1895&edit=1
--