fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091)

This commit is contained in:
Brian France 2006-02-23 03:48:30 +00:00
parent 71a4f39d7b
commit 2eb346cce0

View file

@ -1597,7 +1597,7 @@ PHP_FUNCTION(getopt)
opterr = 0;
/* Force reinitialization of getopt() (via optind reset) on every call. */
optind = 0;
optind = 1;
/* Invoke getopt(3) on the argument array. */
#ifdef HARTMUT_0