From: Brian France Date: Thu, 23 Feb 2006 03:48:30 +0000 (+0000) Subject: fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind... X-Git-Tag: RELEASE_1_2~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eb346cce07714e014f70b5df712c1c6f698540e;p=php fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091) --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index a065c9b830..8ec7c843df 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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