diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-10 16:27:28 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-10 16:27:28 +0000 |
commit | 59b53ea2c8f1dbb4797ffac2a31caad392927b48 (patch) | |
tree | 66286d9cfa99c17393acb03c91467bff32fcfdf3 /sapi/cgi/php_getopt.h | |
parent | 404bbe1f265772bf495581d5914f866aaa5f4337 (diff) | |
download | php-git-59b53ea2c8f1dbb4797ffac2a31caad392927b48.tar.gz |
Always use getopt with CGI, never use it for anything else
Diffstat (limited to 'sapi/cgi/php_getopt.h')
-rw-r--r-- | sapi/cgi/php_getopt.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |