#25350 [NEW]: go-pear.bat fails when directory prefix has whitespace

From: Date: Tue, 02 Sep 2003 03:05:55 +0000
Subject: #25350 [NEW]: go-pear.bat fails when directory prefix has whitespace
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20983@lists.php.net to get a copy of this message
From: cjbj at hotmail dot com Operating system: Windows 2000 PHP version: 4.3.3 PHP Bug Type: PEAR related Bug description: go-pear.bat fails when directory prefix has whitespace Description: ------------ - I downloaded php-4.3.3-Win32.zip for Windows 2000 The go-pear.php in 4.3.3 is version 1.48. - I unzipped and moved to c:\Program Files\php-4.3.3-Win32 - I configured it and Apache 1.3.28 to run. I can access basic .php files e.g. a simple phpinfo() script - I opened a DOS window and changed directory to c:\Program Files\php-4.3.3-Win32 - I ran "go-pear.bat". Expected result: ---------------- Expected this to install PEAR, or to exit gracefully when the invalid path was detected. Actual result: -------------- The top of the screen shows: Welcome to go-pear! Go-pear will install the 'pear' command and all the files needed by it. This command is your tool for PEAR installation and maintenance. Go-pear also lets you download and install the PEAR packages bundled with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, phpUnit. If you wish to abort, press Control-C now, or press Enter to continue: HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none:: http://myvalidproxy.mydomain/ 'C:\Program' is not recognized as an internal or external command, operable program or batch file. PEAR does not appear to be configured. The result seems to be three new empty directories 'data', 'docs' and 'tests' in c:/Program Files/php-4.3.3-Win32/PEAR. - I then copied go-pear.php to an Apache-acccessible directory. - I filled in the form using the path c:\Program Files\php-4.3.3-Win32 for the installation prefix, and c:\program files\php-4.3.3-Win32\cli as the CLI path. - I clicked "install" - I expected this to work - I did get a useful (but annoying) message ERROR(S): Installation prefix: Spaces are not allowed in pathes. Please choose another path. php.exe path, optional (CLI command tools): Spaces are not allowed in pathes. Please choose another path. Spaces are valid in Windows file and directory names. -- Edit bug report at http://bugs.php.net/?id=25350&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25350&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25350&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25350&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25350&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25350&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25350&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25350&r=support Expected behavior: http://bugs.php.net/fix.php?id=25350&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25350&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25350&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25350&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25350&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25350&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25350&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25350&r=gnused

« previous php.pear.dev (#20983) next »