]> granicus.if.org Git - php/commitdiff
fixed bug #14414
authorTomas V.V.Cox <cox@php.net>
Tue, 11 Dec 2001 20:52:58 +0000 (20:52 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 11 Dec 2001 20:52:58 +0000 (20:52 +0000)
pear/scripts/pear.in

index c04362098426c510c748ef138649605933aa3b3d..1e12897255341fa122679c5e6e633eef9acc9a75 100644 (file)
@@ -62,10 +62,10 @@ if (PEAR::isError($options)) {
 
 if (OS_WINDOWS) {
     $pear_default_config = PHP_SYSCONFDIR.DIRECTORY_SEPARATOR.'pearsys.ini';
-    $pear_user_config = PHP_SYSCONFDIR.DIRECTORY_SEPARATOR.'pear.ini';
+    $pear_user_config    = PHP_SYSCONFDIR.DIRECTORY_SEPARATOR.'pear.ini';
 } else {
     $pear_default_config = PHP_SYSCONFDIR.DIRECTORY_SEPARATOR.'pear.conf';
-    $pear_user_config = $HTTP_ENV_VARS['HOME'].DIRECTORY_SEPARATOR.'.pearrc';
+    $pear_user_config    = getenv('HOME').DIRECTORY_SEPARATOR.'.pearrc';
 }
 
 $opts = $options[0];