Change record status: 
Project: 
Introduced in branch: 
7.x
Introduced in version: 
7.98
Description: 

Drupal's admin UI includes a report at admin/reports/status/php which shows the output of phpinfo(). The full output can contain sensitive information so by default Drupal removes some sections.

This behaviour can be configured by setting $conf['sa_core_2023_004_phpinfo_flags'] in settings.php to a different value corresponding to the flags parameter of phpinfo().

If you need to expose more information in the report - for example to debug a problem - consider doing so temporarily.

Impacts: 
Site builders, administrators, editors

Comments

ultrabob’s picture

According to the issue where this was committed, the possible values for that new setting are:

  • INFO_GENERAL The configuration line, php.ini location, build date, Web Server, System and more.
  • INFO_CREDITS PHP Credits. See also phpcredits().
  • INFO_CONFIGURATION Current Local and Master values for PHP directives. See also ini_get().
  • INFO_MODULES Loaded modules and their respective settings. See also get_loaded_extensions().
  • INFO_ENVIRONMENT Environment Variable information that's also available in $_ENV.
  • INFO_VARIABLES Shows all predefined variables from EGPCS (Environment, GET, POST, Cookie, Server).
  • INFO_LICENSE PHP License information. See also the » license FAQ.
  • INFO_ALL Shows all of the above.