diff options
author | Vincent Blavet <vblavet@php.net> | 2002-02-20 22:39:16 +0000 |
---|---|---|
committer | Vincent Blavet <vblavet@php.net> | 2002-02-20 22:39:16 +0000 |
commit | 04db776e71898cb8700df944190797ccae7ff262 (patch) | |
tree | b706687d156322b924e67eadcf35751920caa6d6 /pear/scripts/pearwin.php | |
parent | 16c5edd86fb1d65ce1397742508858dafb31d57e (diff) | |
download | php-git-04db776e71898cb8700df944190797ccae7ff262.tar.gz |
Config variables must be set between "" while using pear.bat windows script
Diffstat (limited to 'pear/scripts/pearwin.php')
-rw-r--r-- | pear/scripts/pearwin.php | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/pear/scripts/pearwin.php b/pear/scripts/pearwin.php index a8217be5df..d3383918a4 100644 --- a/pear/scripts/pearwin.php +++ b/pear/scripts/pearwin.php @@ -41,6 +41,7 @@ if (PEAR::isError($options)) { usage($options); } + $php_sysconfdir = getenv('PHP_SYSCONFDIR'); if (!empty($php_sysconfdir)) { $pear_default_config = $php_sysconfdir.DIRECTORY_SEPARATOR.'pearsys.ini'; @@ -52,6 +53,9 @@ if (!empty($php_sysconfdir)) { $opts = $options[0]; +//echo "ini_get : ".ini_get("pear_install_dir")."\n"; +//echo "get_cfg_var : ".get_cfg_var("pear_install_dir")."\n"; + foreach ($opts as $opt) { switch ($opt[0]) { case 'c': @@ -203,16 +207,16 @@ function usage($obj = null) fputs($stderr, "Usage: pear [options] command [command-options] <parameters>\n". "Options:\n". - " -v increase verbosity level (default 1)\n". - " -q be quiet, decrease verbosity level\n". - " -c file find user configuration in `file'\n". - " -C file find system configuration in `file'\n". - " -d foo=bar set user config variable `foo' to `bar'\n". - " -D foo=bar set system config variable `foo' to `bar'\n". - " -s store user configuration\n". - " -S store system configuration\n". - " -u foo unset `foo' in the user configuration\n". - " -h, -? display help/usage (this message)\n". + " -v increase verbosity level (default 1)\n". + " -q be quiet, decrease verbosity level\n". + " -c file find user configuration in `file'\n". + " -C file find system configuration in `file'\n". + " -d \"foo=bar\" set user config variable `foo' to `bar'\n". + " -D \"foo=bar\" set system config variable `foo' to `bar'\n". + " -s store user configuration\n". + " -S store system configuration\n". + " -u foo unset `foo' in the user configuration\n". + " -h, -? display help/usage (this message)\n". "Commands:\n". " help [command]\n". " install [-r] <package file>\n". |