mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091)
This commit is contained in:
parent
71a4f39d7b
commit
2eb346cce0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue