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

Bug #6716 "pear install -r" errors after install when attempting "pear list <pkgname>"
Submitted: 2006-02-07 14:55 UTC
From: atex Assigned: cellog
Status: Closed Package: PEAR (version 1.4.6)
PHP Version: 5.1.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-02-07 14:55 UTC] atex
Description: ------------ When using the '-r' (register-only) flag when installing a package with PEAR, the installation seems to go through without issue. However, after installation, when you attempt to list the files in the package with "pear list <pkgname>", the following error occurs: Notice: Undefined index: data in PEAR/Frontend/CLI.php on line 681 Warning: Invalid argument supplied for foreach() in PEAR/Frontend/CLI.php on line 699 Test script: --------------- The test is to install the package files manually to the PEAR directory and then attempt to do 'pear install <pkgname>' on either the package.xml file or the whole .tgz file. Both will cause this error in the package file listing. Note: The 'pear info <pkgname>' command still works correctly for packages installed with 'pear install -r'. Expected result: ---------------- The result should be a list of the files included in this package's installation. Actual result: -------------- Notice: Undefined index: data in PEAR/Frontend/CLI.php on line 681 Warning: Invalid argument supplied for foreach() in PEAR/Frontend/CLI.php on line 699

Comments

 [2006-02-07 14:56 UTC] atex
Edited summary...typo
 [2006-02-08 01:52 UTC] cellog
Thank you for taking the time to report a problem with the package. This problem may have been already fixed by a previous change that is in the CVS of the package. Please log into CVS with: cvs -d :pserver:cvsread@cvs.php.net:/repository login and check out the CVS repository of this package and upgrade cvs -d :pserver:cvsread@cvs.php.net:/repository co pear-core pear upgrade pear-core/package2.xml or pear upgrade pear-core/package.xml If you are able to reproduce the bug with the latest CVS, please change the status back to "Open". Again, thank you for your continued support of PEAR.
 [2006-02-08 17:53 UTC] atex
I downloaded and installed the CVS PEAR (1.4.7) and that seems to have fixed the bug. Thanks.