Re: [PATCH] Getopt with longopts and windows support - part 2

From: Date: Tue, 07 Aug 2007 20:26:52 +0000
Subject: Re: [PATCH] Getopt with longopts and windows support - part 2
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-31481@lists.php.net to get a copy of this message
> Why one would need getopt outside of cgi/cli? I.e. where would these > options come from? initially the idea was to use getopt on windows machines. After proposing my patch which just includes the NetBSD getopt(), there was a recommandation in php.pecl to use the php_getopt instead of the system provided getopt to implement the PHP_FUNCTION(getopt). This imho makes sense. We got windows support as well as long parameter support. As we use it in ext/standard/basic_functions.c we have to move the getopt.c out of sapi/cli.

« previous php.internals (#31481) next »