From: Derick Rethans Date: Thu, 14 Aug 2003 20:12:51 +0000 (+0000) Subject: - Fix library path problems X-Git-Tag: php-4.3.3RC4~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05ae3f22ab5d1b53567e71c920c117cb359afd5f;p=php - Fix library path problems --- diff --git a/pear/PEAR/Config.php b/pear/PEAR/Config.php index a4f51400fd..36253c3cd0 100644 --- a/pear/PEAR/Config.php +++ b/pear/PEAR/Config.php @@ -66,9 +66,9 @@ if (getenv('PHP_PEAR_HTTP_PROXY')) { if (getenv('PHP_PEAR_INSTALL_DIR')) { define('PEAR_CONFIG_DEFAULT_PHP_DIR', getenv('PHP_PEAR_INSTALL_DIR')); } else { - if (@is_dir($PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib')) { + if (@is_dir($PEAR_INSTALL_DIR)) { define('PEAR_CONFIG_DEFAULT_PHP_DIR', - $PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'lib'); + $PEAR_INSTALL_DIR); } else { define('PEAR_CONFIG_DEFAULT_PHP_DIR', $PEAR_INSTALL_DIR); } diff --git a/pear/install-pear.php b/pear/install-pear.php index 24b3d9a51b..d2d1b804f9 100644 --- a/pear/install-pear.php +++ b/pear/install-pear.php @@ -46,7 +46,7 @@ if (!empty($bin_dir)) { // User supplied a dir prefix if (!empty($with_dir)) { $ds = DIRECTORY_SEPARATOR; - $config->set('php_dir', $with_dir . $ds . 'lib', 'default'); + $config->set('php_dir', $with_dir, 'default'); $config->set('doc_dir', $with_dir . $ds . 'doc', 'default'); $config->set('data_dir', $with_dir . $ds . 'data', 'default'); $config->set('test_dir', $with_dir . $ds . 'test', 'default');