diff options
author | Brian France <bfrance@php.net> | 2006-02-23 03:51:46 +0000 |
---|---|---|
committer | Brian France <bfrance@php.net> | 2006-02-23 03:51:46 +0000 |
commit | 9f53c8e313fb92d9b53b6da1689c84f1628ea947 (patch) | |
tree | e2303e3fb672e1e0fc2c9fb9f9511b395db53dc0 | |
parent | 07e7092729b94f8de24ff96d3a876d0da4eaebc2 (diff) | |
download | php-git-9f53c8e313fb92d9b53b6da1689c84f1628ea947.tar.gz |
MFH: fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091)
-rw-r--r-- | ext/standard/basic_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 2ff5bb83f6..bcccc61c31 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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 |