From 073b6ea818286fe838097d49f92ae379d5f217f0 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 22 Feb 2021 12:24:15 +0100 Subject: Fix #80771: phpinfo(INFO_CREDITS) displays nothing in CLI There is no good reason not to show the credits in text based SAPIs, except for brevity. Thus, we suppress the credits from `php -i`. Closes GH-6710. --- sapi/cli/php_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 91f400aca4..0fd167de63 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -642,7 +642,7 @@ static int do_cli(int argc, char **argv) /* {{{ */ goto err; } request_started = 1; - php_print_info(0xFFFFFFFF); + php_print_info(PHP_INFO_ALL & ~PHP_INFO_CREDITS); php_output_end_all(); exit_status = (c == '?' && argc > 1 && !strchr(argv[1], c)); goto out; -- cgit v1.2.1