diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-04-09 09:16:51 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-04-09 09:16:51 +0000 |
commit | 9412a490069d6445f8af5b3ad08400b41440e2c2 (patch) | |
tree | 6692d55759b506e45c514a3b03ea4c936369ae92 /sapi | |
parent | dfacfae34aafb1fdfb9f5042927236dac8c4b983 (diff) | |
download | php-git-9412a490069d6445f8af5b3ad08400b41440e2c2.tar.gz |
Fixed bug #44673 (With CGI argv/argc starts from arguments, not from script)
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 5e48ac9bf7..0c7cc01197 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1800,7 +1800,7 @@ consult the installation file that came with this distribution, or visit \n\ } else if (argc > php_optind) { /* file is on command line, but not in -f opt */ STR_FREE(SG(request_info).path_translated); - SG(request_info).path_translated = estrdup(argv[php_optind++]); + SG(request_info).path_translated = estrdup(argv[php_optind]); /* arguments after the file are considered script args */ SG(request_info).argc = argc - php_optind; SG(request_info).argv = &argv[php_optind]; |