Re: cvs: php4 /pear/scripts pear.in
| From: | Stig S. Bakken | Date: | Sun, 12 May 2002 21:00:57 +0000 |
| Subject: | Re: cvs: php4 /pear/scripts pear.in | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-3787@lists.php.net to get a copy of this message | ||
Please don't touch the installer right now, I said yesterday I have a
whole bunch of changes coming.
I am aware that the change to Console_Getopt break BC, but the old
behaviour was completely broken.
- Stig
On Sun, 2002-05-12 at 18:30, Tomas V.V.Cox wrote:
> cox Sun May 12 12:30:32 2002 EDT
>
> Modified files:
> /php4/pear/scripts pear.in
> Log:
> The first entry in argv is the command name, so Getopt will stop
> parsing more args
> # Stig be carefull, your change to Getopt breaks BC
>
>
> Index: php4/pear/scripts/pear.in
> diff -u php4/pear/scripts/pear.in:1.42 php4/pear/scripts/pear.in:1.43
> --- php4/pear/scripts/pear.in:1.42 Wed May 8 22:31:37 2002
> +++ php4/pear/scripts/pear.in Sun May 12 12:30:26 2002
> @@ -35,8 +35,8 @@
> $cmd_options = PEAR_Command::getOptions();
> $progname = basename(__FILE__);
>
> -// XXX change Getopt to use raiseError() ?
> $argv = Console_Getopt::readPHPArgv();
> +array_shift($argv);
> $options = Console_Getopt::getopt($argv, "c:C:d:D:Gh?sSqu:v" . $cmd_options);
> if (PEAR::isError($options)) {
> usage($options);
>
>
>
> --
> PEAR CVS Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php