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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 + 18 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC