Re: PHP-4.3.0RC3 Windows - getopt function
| From: | l0t3k | Date: | Sun, 15 Dec 2002 19:17:21 +0000 |
| Subject: | Re: PHP-4.3.0RC3 Windows - getopt function | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92503@lists.php.net to get a copy of this message | ||
Hartmut,
point me to some docs and i'll see what i can do. i have an opt parser
from another project that i can possibly modify, and i have PHP setup as a
project in MSVC.
l0t3k
"Hartmut Holzgraefe" <hartmut@six.de> wrote in message
news:3DF88BBA.1020202@six.de...
> Kjartan Mannes wrote:
> > The NEWS file mentions a new function getopt(), but I can not get this
> > to work under windows.
> >
> > Fatal error: Call to undefined function: getopt()
> >
> > My guess is that getopt() isn't a standard system function, but PHP
> > mimics the function as it handles command line arguments. Is this
> > intentional or just an oversight?
>
> for now it is Unix-only
>
> ( Actualy it is protected by #if HAVE_GETOPT and configure
> deals with it checking for getopt() in libc.
> On Windows there is nothing like configure so this has
> to be solved in a different way. )
>
> any Win32 volunteers?
>
> --
> Six Offene Systeme GmbH http://www.six.de/
> i.A. Hartmut Holzgraefe
> Email: hartmut@six.de
> Tel.: +49-711-99091-77
>