diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index cc9a26c41389d..4766fac2537cd 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -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 */