mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
fix for Console_GetOpt 2.0 (what was 1.1 - re-release being negotiated)
This commit is contained in:
@@ -48,6 +48,7 @@ $all_commands = PEAR_Command::getCommands();
|
||||
|
||||
$argv = Console_Getopt::readPHPArgv();
|
||||
$progname = basename($argv[0]);
|
||||
array_shift($argv);
|
||||
$options = Console_Getopt::getopt($argv, "c:C:d:D:Gh?sSqu:vV");
|
||||
if (PEAR::isError($options)) {
|
||||
usage($options);
|
||||
@@ -155,6 +156,7 @@ if ($fetype == 'Gtk') {
|
||||
|
||||
$short_args = $long_args = null;
|
||||
PEAR_Command::getGetoptArgs($command, $short_args, $long_args);
|
||||
array_shift($options[1]);
|
||||
if (PEAR::isError($tmp = Console_Getopt::getopt($options[1], $short_args, $long_args))) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user