php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25350 go-pear.bat fails when directory prefix has whitespace
Submitted: 2003-09-01 22:05 UTC Modified: 2003-09-03 00:59 UTC
From: cjbj at hotmail dot com Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.3 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-09-01 22:05 UTC] cjbj at hotmail dot com
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-01 22:37 UTC] cellog@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

There are many fixes in CVS for this problem.

Note that there is a straightforward typo in pear\go-pear.php which is known, but hasn't been committed yet for some reason.  You should do a text search for "exee" and replace it with "exe"

please check out php-src/pear and copy the contents to C:\program files\php-4.3.3-Win32\pear and try again.

Greg
 [2003-09-03 00:59 UTC] cjbj at hotmail dot com
- I unzipped php-4.3.3-Win32.zip and moved it to c:\Program
  Files\php-4.3.3-Win32

- Renamed PEAR to PEAR_old

- Downloaded http://snaps.php.net/win32/php5-win32-latest.zip 

- Copied the whole PEAR directory to c:\Program Files\php-4.3.3-Win32 

- Started a DOS window

- Changed directory to c:\Program Files\php-4.3.3-Win32 

- Ran "go-pear".  

It completed successfully and the disk layout seems as expected.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC