Skip to content

Commit becda86

Browse files
committed
Fix issue with -- in phpdbg command line
1 parent 3c6a2fb commit becda86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/phpdbg/phpdbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ int main(int argc, char **argv) /* {{{ */
15761576
quit_immediately = phpdbg_startup_run > 1;
15771577

15781578
/* set exec if present on command line */
1579-
if (!read_from_stdin && argc > php_optind && (strcmp(argv[php_optind-1], "--") != SUCCESS)) {
1579+
if (!read_from_stdin && argc > php_optind) {
15801580
if (!exec && strlen(argv[php_optind])) {
15811581
exec = strdup(argv[php_optind]);
15821582
}

0 commit comments

Comments
 (0)