diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-12-21 02:42:23 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-12-21 02:42:23 +0100 |
commit | becda86ae5dbf7abb1afabd14e84113b2785a345 (patch) | |
tree | 389dc4e7097141485ce823ec6cf1a79a34463d2c | |
parent | 3c6a2fb08cb8c0dddc16a62a816249c68132773d (diff) | |
download | php-git-becda86ae5dbf7abb1afabd14e84113b2785a345.tar.gz |
Fix issue with -- in phpdbg command line
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 9cc60286c5..8153772368 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -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]); } |