]> granicus.if.org Git - php/commitdiff
Reset option parsing
authorMarcus Boerger <helly@php.net>
Sun, 27 Apr 2003 19:41:36 +0000 (19:41 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 27 Apr 2003 19:41:36 +0000 (19:41 +0000)
# i swear i had them in before last commit

sapi/cli/php_cli.c

index b9da7782bf20fd902b14a91ecfe67c012bbbfa90..13f731f851a0fa8ddc6e48cd664b7b8b4f86bc86 100644 (file)
@@ -683,6 +683,8 @@ int main(int argc, char *argv[])
                INI_HARDCODED("implicit_flush", "1");
                INI_HARDCODED("max_execution_time", "0");
 
+               optind = orig_optind;
+               optarg = orig_optarg;
                while ((c = php_getopt(argc, argv, OPTIONS, &optarg, &optind, 0)) != -1) {
                        switch (c) {