]> granicus.if.org Git - php/commitdiff
Fix for BSD's (possibly others):
authorMelvyn Sopacua <msopacua@php.net>
Thu, 12 Dec 2002 18:50:26 +0000 (18:50 +0000)
committerMelvyn Sopacua <msopacua@php.net>
Thu, 12 Dec 2002 18:50:26 +0000 (18:50 +0000)
  Accept system default, for the index. Don't initialize it.

ext/standard/basic_functions.c

index cdd6cea50dc5cf65e09c1a382fed8ff0821813e7..a78e5393dfb53cda5226857294bec7d8b462974e 100644 (file)
@@ -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) {