Remove always-false check in CLI (#10723)

This is the case c == 'i', so c == '?' is always false, hence the result
is always 0.
This commit is contained in:
Niels Dossche 2023-02-28 12:24:09 +01:00 committed by GitHub
parent 145602f38e
commit f247e48def
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -632,7 +632,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
request_started = 1;
php_print_info(PHP_INFO_ALL & ~PHP_INFO_CREDITS);
php_output_end_all();
EG(exit_status) = (c == '?' && argc > 1 && !strchr(argv[1], c));
EG(exit_status) = 0;
goto out;
case 'v': /* show php version & quit */