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

index a065c9b8303cd046cfa8b0ba199ba563bc42cd7a..8ec7c843df31d667c6a3701d2c9083060220647e 100644 (file)
@@ -1597,7 +1597,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