|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-17 10:28 UTC] pierre at dotgeek dot org
[2004-07-17 13:54 UTC] danielc at analysisandsolutions dot com
[2005-02-26 22:37 UTC] cellog@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 19:00:02 2025 UTC |
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.