mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed bug #44673 (With CGI argv/argc starts from arguments, not from script)
This commit is contained in:
parent
3e7fc16078
commit
afbc0c20ab
@ -1805,7 +1805,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];
|
||||
|
Loading…
Reference in New Issue
Block a user