MFB52:- Changed phpinfo() to make difference between set php.ini path and what was actually loaded.

This commit is contained in:
foobar 2007-04-02 12:42:18 +00:00
parent 55c8d82530
commit 0ac6bb9f16

View File

@ -530,7 +530,8 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
php_info_print_table_row(2, "Virtual Directory Support", "disabled" ); php_info_print_table_row(2, "Virtual Directory Support", "disabled" );
#endif #endif
php_info_print_table_row(2, "Configuration File (php.ini) Path", php_ini_opened_path?php_ini_opened_path:PHP_CONFIG_FILE_PATH); php_info_print_table_row(2, "Configuration File (php.ini) Path", PHP_CONFIG_FILE_PATH);
php_info_print_table_row(2, "Loaded Configuration File", php_ini_opened_path ? php_ini_opened_path : "(none)");
if (strlen(PHP_CONFIG_FILE_SCAN_DIR)) { if (strlen(PHP_CONFIG_FILE_SCAN_DIR)) {
php_info_print_table_row(2, "Scan this dir for additional .ini files", PHP_CONFIG_FILE_SCAN_DIR); php_info_print_table_row(2, "Scan this dir for additional .ini files", PHP_CONFIG_FILE_SCAN_DIR);