From: Melvyn Sopacua Date: Thu, 12 Dec 2002 18:50:26 +0000 (+0000) Subject: Fix for BSD's (possibly others): X-Git-Tag: RELEASE_1_0b3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44b7c16b03774c682eb6343b688f021b9ed093db;p=php Fix for BSD's (possibly others): Accept system default, for the index. Don't initialize it. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cdd6cea50d..a78e5393df 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1523,9 +1523,6 @@ PHP_FUNCTION(getopt) /* Disable getopt()'s error messages. */ opterr = 0; - /* reset option parser position */ - optind = 0; - /* Invoke getopt(3) on the argument array. */ #ifdef HARTMUT_0 while ((o = getopt_long(argc, argv, options, longopts, &longindex)) != -1) {