]> granicus.if.org Git - php/commitdiff
* moved the --without-pear compat defines to the right place
authorStig Bakken <ssb@php.net>
Mon, 27 May 2002 22:28:26 +0000 (22:28 +0000)
committerStig Bakken <ssb@php.net>
Mon, 27 May 2002 22:28:26 +0000 (22:28 +0000)
pear/PEAR/Config.php

index 09c1cef3edb926dd28fa5b1f3e450c0938aaf786..6bdbd618a7b9780f10b3dd48cad456c429d24525 100644 (file)
@@ -26,6 +26,14 @@ require_once 'PEAR.php';
  */
 $GLOBALS['_PEAR_Config_instance'] = null;
 
+// in case a --without-pear PHP installation is used
+if (!defined('PEAR_INSTALL_DIR')) {
+    define('PEAR_INSTALL_DIR', PHP_LIBDIR);
+}
+if (!defined('PEAR_EXTENSION_DIR')) {
+    define('PEAR_EXTENSION_DIR', PHP_EXTENSION_DIR);
+}
+
 define('PEAR_CONFIG_DEFAULT_BINDIR',
        PHP_BINDIR);
 define('PEAR_CONFIG_DEFAULT_DOCDIR',
@@ -39,14 +47,6 @@ define('PEAR_CONFIG_DEFAULT_TESTDIR',
        PEAR_INSTALL_DIR.DIRECTORY_SEPARATOR.'tests');
 define('PEAR_DEFAULT_UMASK', umask());
 
-// in case a --without-pear PHP installation is used
-if (!defined('PEAR_INSTALL_DIR')) {
-    define('PEAR_INSTALL_DIR', PHP_LIBDIR);
-}
-if (!defined('PEAR_EXTENSION_DIR')) {
-    define('PEAR_EXTENSION_DIR', PHP_EXTENSION_DIR);
-}
-
 /**
  * This is a class for storing configuration data, keeping track of
  * which are system-defined, user-defined or defaulted.