From 9f53c8e313fb92d9b53b6da1689c84f1628ea947 Mon Sep 17 00:00:00 2001 From: Brian France Date: Thu, 23 Feb 2006 03:51:46 +0000 Subject: [PATCH] MFH: fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091) --- ext/standard/basic_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 2ff5bb83f6..bcccc61c31 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1667,7 +1667,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 -- 2.50.1