Skip to content

Commit

Permalink
Merge branch 'PHP-7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Dec 21, 2016
2 parents 7774fd1 + 7e21462 commit 942d4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapi/phpdbg/phpdbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ int main(int argc, char **argv) /* {{{ */
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]);
}
Expand Down

0 comments on commit 942d4d5

Please sign in to comment.