Fix unit tests
[phpmyadmin.git] / phpinfo.php
blob2a3a98587dfb02b5f4a62dbe732a0937749f11bb
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * phpinfo() wrapper to allow displaying only when configured to do so.
6 * @package PhpMyAdmin
7 */
9 /**
10 * Gets core libraries and defines some variables
12 require_once 'libraries/common.inc.php';
13 $response = PhpMyAdmin\Response::getInstance();
14 $response->disable();
15 $response->getHeader()->sendHttpHeaders();
17 /**
18 * Displays PHP information
20 if ($GLOBALS['cfg']['ShowPhpInfo']) {
21 phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);