|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cjbj at hotmail dot com
New email:
PHP Version: OS:


 [2003-09-01 22:05 UTC] cjbj at hotmail dot com
- I downloaded 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 (, 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

- 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

    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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-01 22:37 UTC]
Please try using this CVS snapshot:
For Windows:

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.

 [2003-09-03 00:59 UTC] cjbj at hotmail dot com
- I unzipped and moved it to c:\Program

- Renamed PEAR to PEAR_old

- Downloaded 

- 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-2023 The PHP Group
All rights reserved.
Last updated: Thu Jun 01 19:03:36 2023 UTC