mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix issue with -- in phpdbg command line
This commit is contained in:
parent
3c6a2fb08c
commit
becda86ae5
1 changed files with 1 additions and 1 deletions
|
@ -1576,7 +1576,7 @@ phpdbg_main:
|
|||
quit_immediately = phpdbg_startup_run > 1;
|
||||
|
||||
/* set exec if present on command line */
|
||||
if (!read_from_stdin && argc > php_optind && (strcmp(argv[php_optind-1], "--") != SUCCESS)) {
|
||||
if (!read_from_stdin && argc > php_optind) {
|
||||
if (!exec && strlen(argv[php_optind])) {
|
||||
exec = strdup(argv[php_optind]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue