summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2016-12-21 02:42:38 +0100
committerBob Weinand <bobwei9@hotmail.com>2016-12-21 02:42:38 +0100
commit7e2146293bb4bd7d65725e16c859f62a8d4383b5 (patch)
treeaf8a3e5d52fab047828f3c6a0a696d182a67f72d /sapi/phpdbg/phpdbg.c
parent8b06b7e2665e16d1643f7027072dfd3ec34fa0e2 (diff)
parentbecda86ae5dbf7abb1afabd14e84113b2785a345 (diff)
downloadphp-git-7e2146293bb4bd7d65725e16c859f62a8d4383b5.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index 4669c5d7e6..ba13b93646 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -1605,7 +1605,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]);
}