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

Bug #13508 undefined index errors when installing a remote bundle
Submitted: 2008-03-26 13:35 UTC
From: tswicegood Assigned: cellog
Status: Closed Package: PEAR (version 1.7.1)
PHP Version: 5.2.5 OS:
Roadmaps: 1.7.2    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 22 - 2 = ?

 
 [2008-03-26 13:35 UTC] tswicegood (Travis Swicegood)
Description: ------------ If you attempt to install a bundle remotely, you receive two undefined index errors: Test script: --------------- $ pear channel-discover channel.phpt.info $ pear install phpt/PHPT-alpha Expected result: ---------------- downloading PHPT-0.1alpha.tgz ... Starting to download PHPT-0.1alpha.tgz (26,150 bytes) .........done: 26,150 bytes ERROR: Exception: bundles should be handled in download code only Actual result: -------------- sudo pear install phpt/PHPT-alpha Password: downloading PHPT-0.1alpha.tgz ... Starting to download PHPT-0.1alpha.tgz (26,150 bytes) .........done: 26,150 bytes Notice: Undefined index: dir in PEAR/PackageFile/v2.php on line 1176 Notice: Undefined index: dir in /usr/local/lib/php/PEAR/PackageFile/v2.php on line 1176 Call Stack: 0.0199 225868 1. {main}() /usr/local/lib/php/pearcmd.php:0 0.3374 2896948 2. PEAR_Command_Common->run() /usr/local/lib/php/pearcmd.php:312 0.3374 2897596 3. PEAR_Command_Install->doInstall() /usr/local/lib/php/PEAR/Command/Common.php:285 1.2639 8107944 4. PEAR_Installer->install() /usr/local/lib/php/PEAR/Command/Install.php:666 1.2790 8120276 5. PEAR_PackageFile_v2- >getInstallationFilelist() /usr/local/lib/php/PEAR/Installer.php:1132 1.2790 8122784 6. PEAR_PackageFile_v2->getFilelist() /usr/local/lib/php/PEAR/PackageFile/v2.php:1234 ERROR: Exception: bundles should be handled in download code only

Comments

 [2008-05-13 05:29 UTC] cellog (Greg Beaver)
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. took your patch and moved it to a better location