Re: Console_getopt error

From: Date: Wed, 26 Jun 2002 20:26:41 +0000
Subject: Re: Console_getopt error
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7382@lists.php.net to get a copy of this message
Michael Dransfield wrote: > > I am working on a clean install of php-4.2.1 ona linux server and had > problems after installing console_getopt. The pear script suddenly stopped > recognising the command given to it. Even things like pear list-installed > (which worked 2 seconds before) just produced the help message. > > I made this change to the pear script and everything works again > > - $command = (isset($options[1][1])) ? $options[1][1] : null; > + $command = (isset($options[1][0])) ? $options[1][0] : null; > > It sounds like it might be an underlying problem with console_getopt, but > this works for me now... :) > There were changes in Console_Getopt to make it POSIX compliant, that's why only the lastest version of the pear script works with the lastest version of Console_Getopt. Tomas V.V.Cox

« previous php.pear.dev (#7382) next »