php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25298 go-pear.bat install doesn't find php.ini
Submitted: 2003-08-28 11:57 UTC Modified: 2004-03-05 17:07 UTC
From: danielc at analysisandsolutions dot com Assigned: pajoye (profile)
Status: Closed Package: PEAR related
PHP Version: 5CVS-2003-08-28 (dev) OS: Win32
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danielc at analysisandsolutions dot com
New email:
PHP Version: OS:

 

 [2003-08-28 11:57 UTC] danielc at analysisandsolutions dot com
Description:
------------
1)  Used go-pear.bat last night at 2003-08-28 00:00 hours, EDT (-0400)

2)  Put in my own custom "Installation prefix" of "C:\Program Files\pear"

3)  System correctly found "php.exe path" to be "C:\PROGRA~1\php\cli\php.exe"

4)  Near the end of the install, the "include_path defined in the currently used php.ini does not contain the PEAR PHP directory" warning message came up.  It did not find my php.ini file.

In case it matters:
   *  I'm running PHP 5.0.0b2-dev (cli) (built: Aug 26 2003 16:10:26)
   *  The PEAR/go-pear.php file version is: $Id: go-pear,v 1.48 2003/08/12 21:44:02 pajoye Exp $

Expected result:
----------------
Current include path           : .;c:\progra~1\pear
Configured directory           : C:\Program Files\pear\pear
Currently used php.ini (guess) : c:\progra~1\php


Actual result:
--------------
Current include path           : .;c:\php4\pear
Configured directory           : C:\Program Files\pear\pear
Currently used php.ini (guess) :


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-28 20:59 UTC] cjbj at hotmail dot com
I found that go-pear.bat did not like spaces in paths.
I had to choose another base directory to get it to work.
This was on W2K using a go-pear.php 1.47 I pulled last week
on top of my base PHP 4.3.2.
 [2003-08-29 00:25 UTC] cellog@php.net
this is ridiculously simple to fix.  Here are the contents of go-pear.bat:

@ECHO OFF
set PHP_BIN=cli\php.exe
%PHP_BIN% -n -d output_buffering=0 PEAR\go-pear.php
pause

The -n option is documented as

 -n               No php.ini file will be used

remove this and it works.  It has absolutely nothing to do with spaces in paths.

Regards,
Greg

P.S. Where is go-pear.bat in CVS?
 [2004-03-05 17:07 UTC] pajoye@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Aug 05 02:01:23 2021 UTC