]> 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:53:00 +0000 (03:53 +0000)
committerBrian France <bfrance@php.net>
Thu, 23 Feb 2006 03:53:00 +0000 (03:53 +0000)
ext/standard/basic_functions.c

index 87f64da2325fe2183b002abca3000028be87fa8a..9f5b24fe8b63288e3989612b4bc95775cf4c47f3 100644 (file)
@@ -1596,7 +1596,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