mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
* PEAR_Config class to maintain system and per-user configuration for
PEAR installations * PEAR_Remote class to communicate with the backend server (xmlrpc) * change pear script's option parsing to "-d foo=bar" style * added -c/-C (user/system config file) and -s/-S (store user/system config) options
This commit is contained in:
parent
6586cf7216
commit
f197cf3630
5 changed files with 392 additions and 37 deletions
|
@ -38,19 +38,19 @@ foreach ($opts as $opt) {
|
|||
break;
|
||||
case 'e':
|
||||
if ($param{0} != getenv('DIRECTORY_SEPARATOR')) {
|
||||
usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n"));
|
||||
usage (new PEAR_Error("no absolute path (eg. /usr/lib/php)\n"));
|
||||
}
|
||||
$ext_dir = $param;
|
||||
break;
|
||||
case 'p':
|
||||
if ($param{0} != getenv('DIRECTORY_SEPARATOR')) {
|
||||
usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n"));
|
||||
usage (new PEAR_Error("no absolute path (eg. /usr/lib/php)\n"));
|
||||
}
|
||||
$script_dir = $param;
|
||||
break;
|
||||
case 'd':
|
||||
if ($param{0} != getenv('DIRECTORY_SEPARATOR')) {
|
||||
usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n"));
|
||||
usage (new PEAR_Error("no absolute path (eg. /usr/lib/php)\n"));
|
||||
}
|
||||
$doc_dir = $param;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue