1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
--TEST-- getopt#007 (optind #2) --ARGS-- -a 1 -b 2 -- -c nope test --INI-- register_argc_argv=On variables_order=GPS --FILE-- <?php $optind = null; getopt('a:b:', [], $optind); var_dump($optind); ?> --EXPECT-- int(6)