From: Adam Saponara Date: Sun, 29 May 2016 18:21:10 +0000 (-0400) Subject: Ensure optind is correct when flags appear after dash-dash X-Git-Tag: php-7.1.0beta1~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74502d43be0f4d9a06b559f5a07eaa06527c7bbe;p=php Ensure optind is correct when flags appear after dash-dash --- diff --git a/ext/standard/tests/general_functions/getopt_007.phpt b/ext/standard/tests/general_functions/getopt_007.phpt index 157a86e70b..ae96da5c4b 100644 --- a/ext/standard/tests/general_functions/getopt_007.phpt +++ b/ext/standard/tests/general_functions/getopt_007.phpt @@ -1,7 +1,7 @@ --TEST-- getopt#007 (optind #2) --ARGS-- --a 1 -b 2 -- test +-a 1 -b 2 -- -c nope test --INI-- register_argc_argv=On variables_order=GPS