Re: PHP-4.3.0RC3 Windows - getopt function

From: Date: Sun, 15 Dec 2002 19:49:31 +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-92504@lists.php.net to get a copy of this message
i took a look at the man pages and php docs. seems straight forward. give me a few days and i'll report back to the list. actually the code that i have can handle long as well as short args e.g. -f or --foo , as well as being able to specify whether an argument is optional or required. the code is plain vanilla C so it can be used for all supported platforms. 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 >

« previous php.dev (#92504) next »