mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
145602f38e
commit
f247e48def
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue