Re: [PEAR] Re: pear does not respect directories in pear.ini
[email protected] (Richard Quadling)
| Newsgroups | php.pear.general |
|---|---|
| Message-ID | <CAKUjMCU9VdEMvkQ=4uSb-=-QnxRmz43RY80to_qvnWzKpXEgHQ@mail.gmail.com> |
On 27 February 2013 12:33, MC <[email protected]> wrote: > On 26. 2. 2013 20:14, Mads Lie Jensen wrote: >> >> Hi >> >> > I have installed PEAR on PHP 5.4 using go-pear.phar command and chosen >> > the following directories (pear.ini is stored in D:\PF\PHP\pear.ini): >> > >> > However, when I use "pear channel-discover" or "pear install" commands >> > it uses the default directories instead of the one specified in >> > pear.ini. See the examples bellow. >> > >> > How to fix it? >> >> Are you sure that pear is using the settings from that file? I do not >> know how pear works on windows, on my linuxbox it uses .pearrc in my >> home-directory and /etc/php5/cli/pear.conf as system configuration file. >> >> Try running 'pear config-show' to see the paths it is using. > > > Hi, > > yes, you are right. I was too naive that setting that directories in > installer would do its best to make it work. However, even running the *.reg > file designed to store the directories in the OS path variables is not > enough as it does not get into effect until the OS restarts (or at least > until the user logs off/logs in). > > After I have restarted the OS it started to show the correct directories. This is (I think) because the initial environment is grabbed from the registry and then populated throughout. Amending the registry will not alter the environment for pre-existing instances/apps. At a command prompt, closing and opening it will get a new environment, but I've always rebooted when I make system changes. Just feels safer.