Home » PEAR » PEAR_Frontend_Web » Bug #1624
Incorrect pear.conf file selected
Details
| Submitted | 2004-06-12 16:34 UTC |
|---|---|
| From | cox at idecnet dot com |
| Assigned | pajoye |
| Status | Closed |
| Package | PEAR_Frontend_Web |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2004-06-12 16:34 UTC] cox at idecnet dot com
Description:
------------
Once you install for the first time go-pear with WebInstaller, it uses the global config file (/etc/pear.conf or /usr/etc/pear.conf) if there is already a PEAR installation, instead of the just created one.
The patch for index.php (at top of the code):
if (!getenv('PHP_PEAR_SYSCONF_DIR')) {
// Use this config instead of the global one
if (is_file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pear.conf')) {
putenv('PHP_PEAR_SYSCONF_DIR=' . dirname(__FILE__));
}
}
Tomas V.V.Cox
[2004-06-15 16:31 UTC] pierre at dotgeek dot org
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
Thanks :)