[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] [PEAR-BUG] Bug #19812 [NEW]: PEAR installer fails to change pear.ini location as specifie
From:       "php-pear at wfay dot net"<pear-doc () lists ! php ! net>
Date:       2013-02-06 22:33:10
Message-ID: bug-19812 () pear ! php ! net
[Download RAW message or body]

From:             #8c987eb275d34b2d99d
Operating system: Windows Vista
Package version:  
PHP version:      5.4.11
Package:          Documentation
Bug Type:         Bug
Bug description:  PEAR installer fails to change pear.ini location as specified

Description:
------------
After running "php go-pear.phar" I changed configuration 11 from
C:\windows\pear.ini (which is a terrible default location) to
$prefix\pear.ini (which should be the default).

Then finished the install.

Then checked "pear config-show" and it shows User Configuration File as
c:\windows\pear.ini despite my alternative specification during
installation.

Expected result:
----------------
Pear should use the alternative location that I specified for the file
during installation.

Actual result:
--------------
c:\dev\php\php-5.4.11-Win32-VC9-x86>php go-pear.phar

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : system

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   :
C:\dev\php\php-5.4.11-Win32-VC9-x86
...
11. Name of configuration file                    : C:\Windows\pear.ini
12. Path to CLI php.exe                           :
c:\dev\php\php-5.4.11-Win32-VC9-x86

1-12, 'all' or Enter to continue: 11
(Use $prefix as a shortcut for 'C:\dev\php\php-5.4.11-Win32-VC9-x86',
etc.)
Name of configuration file [C:\Windows\pear.ini] :
C:\dev\php\php-5.4.11-Win32-VC9-x86\pear.ini

Below is a suggested file layout for your new PEAR installation.  To
...
11. Name of configuration file                    :
C:\dev\php\php-5.4.11-Win32-VC9-x86\pear.ini
12. Path to CLI php.exe                           :
c:\dev\php\php-5.4.11-Win32-VC9-x86

1-12, 'all' or Enter to continue:
Beginning install...
...
The 'pear' command is now at your service at
c:\dev\php\php-5.4.11-win32-vc9-x86\pear.bat

...
c:\dev\php\php-5.4.11-Win32-VC9-x86>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
...
PEAR executables directory     bin_dir         
C:\dev\php\php-5.4.11-Win32-VC9-x86
...
User Configuration File        Filename         C:\Windows\pear.ini
System Configuration File      Filename         C:\Windows\pearsys.ini

c:\dev\php\php-5.4.11-Win32-VC9-x86>pear config-set auto_discover 1
PEAR_Config::writeConfigFile fopen('C:\Windows\pear.ini','w') failed
(fopen(C:\Windows\pear.ini): failed to open stream:
 Permission denied)


-- 
Edit bug report at https://pear.php.net/bugs/bug.php?id=19812&edit=1
-- 


-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic