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

Bug #9757 pear does not validate -d input (pear -d php_dir=whatever command)
Submitted: 2007-01-06 22:58 UTC
From: jstump Assigned: cellog
Status: Closed Package: PEAR (version 1.5.0RC2)
PHP Version: 5.2.0 OS: OSX
Roadmaps: (Not assigned)    

 [2007-01-06 22:58 UTC] jstump (Joe Stump)
Description: ------------ orwell:/tmp jstump$ sudo pear -d "" login Password: Notice: Undefined offset: 1 in pearcmd.php on line 191 Logging in to 1. Username : root 2. Password : 1-2, 'all', 'abort', or Enter to continue: all Username [root] : jstump Password [] : XXXXXX 1. Username : jstump 2. Password : XXXXXX 1-2, 'all', 'abort', or Enter to continue: Logged in. Expected result: ---------------- There shouldn't be a notice.


 [2007-01-07 02:06 UTC] cellog (Greg Beaver)
note here that it says "logging into" if you want to log into pear -d login or pear config-set default_channel pear login However, PEAR should detect invalid -d setup (it is expecting a parameter for d, and not error-checking. Changing summary
 [2007-01-07 18:35 UTC] cellog (Greg Beaver)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.