]> granicus.if.org Git - php/commitdiff
Ensure optind is correct when flags appear after dash-dash
authorAdam Saponara <saponara@gmail.com>
Sun, 29 May 2016 18:21:10 +0000 (14:21 -0400)
committerJulien Pauli <jpauli@php.net>
Fri, 8 Jul 2016 14:53:24 +0000 (16:53 +0200)
ext/standard/tests/general_functions/getopt_007.phpt

index 157a86e70be1504b6eb39ceab3cb42ff023ef583..ae96da5c4b6ac3552021d6c768a6ecf7a72cb562 100644 (file)
@@ -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