Skip to content

Commit f247e48

Browse files
authored
Remove always-false check in CLI (#10723)
This is the case c == 'i', so c == '?' is always false, hence the result is always 0.
1 parent 145602f commit f247e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/php_cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
632632
request_started = 1;
633633
php_print_info(PHP_INFO_ALL & ~PHP_INFO_CREDITS);
634634
php_output_end_all();
635-
EG(exit_status) = (c == '?' && argc > 1 && !strchr(argv[1], c));
635+
EG(exit_status) = 0;
636636
goto out;
637637

638638
case 'v': /* show php version & quit */

0 commit comments

Comments
 (0)