Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.16

Bug #10367 E_WARNING on list-all for empty channel
Submitted: 2007-03-14 12:16 UTC
From: timj Assigned: timj
Status: Closed Package: PEAR (version 1.5.1)
PHP Version: Irrelevant OS:
Roadmaps: 1.5.2    
Subscription  


 [2007-03-14 12:16 UTC] timj (Tim Jackson)
Description: ------------ PEAR_Frontend_CLI throws an E_WARNING if list-all is called on an empty channel Test script: --------------- Set up an empty channel (that is, a valid channel with no packages) on myemptychannel.example.com and channel-discover it. pear list-all -c myemptychannel.example.com Expected result: ---------------- All packages: ============= Package Latest Local [ends] Actual result: -------------- Warning: Invalid argument supplied for foreach() in PEAR/Frontend/CLI.php on line 680 PHP Warning: Invalid argument supplied for foreach() in /pear/PEAR/Frontend/CLI.php on line 680 Warning: Invalid argument supplied for foreach() in /pear/PEAR/Frontend/CLI.php on line 680 All packages: ============= Package Latest Local

Comments

 [2007-03-14 12:42 UTC] timj (Tim Jackson)
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.