From 59b53ea2c8f1dbb4797ffac2a31caad392927b48 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Thu, 10 Feb 2000 16:27:28 +0000 Subject: Always use getopt with CGI, never use it for anything else --- sapi/cgi/php_getopt.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sapi/cgi/php_getopt.h (limited to 'sapi/cgi/php_getopt.h') diff --git a/sapi/cgi/php_getopt.h b/sapi/cgi/php_getopt.h new file mode 100644 index 0000000000..5f3af64b64 --- /dev/null +++ b/sapi/cgi/php_getopt.h @@ -0,0 +1,9 @@ +/* Borrowed from Apache NT Port */ +#include "php.h" + +PHPAPI extern char *ap_php_optarg; +PHPAPI extern int ap_php_optind; +extern int ap_php_opterr; +extern int ap_php_optopt; + +PHPAPI int ap_php_getopt(int argc, char* const *argv, const char *optstr); -- cgit v1.2.1