mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
fix behaviour on --
#now php -- -i for scriptfile -i works
This commit is contained in:
parent
fb048880aa
commit
a2631c1f1d
1 changed files with 2 additions and 1 deletions
|
@ -554,7 +554,8 @@ int main(int argc, char *argv[])
|
||||||
CG(interactive) = interactive;
|
CG(interactive) = interactive;
|
||||||
|
|
||||||
/* only set script_file if not set already and not in direct mode and not at end of parameter list */
|
/* only set script_file if not set already and not in direct mode and not at end of parameter list */
|
||||||
if (argc > ap_php_optind && !script_file && !exec_direct && strcmp(argv[ap_php_optind-1],"--")) {
|
if (argc > ap_php_optind && !script_file && behavior==PHP_MODE_STANDARD && !strcmp(argv[ap_php_optind-1],"--")) {
|
||||||
|
no_headers = 1;
|
||||||
script_file=argv[ap_php_optind];
|
script_file=argv[ap_php_optind];
|
||||||
ap_php_optind++;
|
ap_php_optind++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue