From 44b7c16b03774c682eb6343b688f021b9ed093db Mon Sep 17 00:00:00 2001 From: Melvyn Sopacua Date: Thu, 12 Dec 2002 18:50:26 +0000 Subject: [PATCH] Fix for BSD's (possibly others): Accept system default, for the index. Don't initialize it. --- ext/standard/basic_functions.c | 3 --- 1 file changed, 3 deletions(-) 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) { -- 2.50.1