Browse Source

fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091)

migration/RELEASE_1_0_0
Brian France 21 years ago
parent
commit
2eb346cce0
  1. 2
      ext/standard/basic_functions.c

2
ext/standard/basic_functions.c

@ -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

Loading…
Cancel
Save