]> granicus.if.org Git - php/commitdiff
MFH: fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but...
authorBrian France <bfrance@php.net>
Thu, 23 Feb 2006 03:51:46 +0000 (03:51 +0000)
committerBrian France <bfrance@php.net>
Thu, 23 Feb 2006 03:51:46 +0000 (03:51 +0000)
ext/standard/basic_functions.c

index 2ff5bb83f601f9a6099b3d5499fa711f81a33a83..bcccc61c310cadd4bc1b16ffd2b13e5679751907 100644 (file)
@@ -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