From: Stanislav Malyshev Date: Tue, 25 Jul 2000 10:54:07 +0000 (+0000) Subject: Report configuration path that is really used, not that is compiled in X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85eb0bb29d0605f9c34f654a151c4b69cd76f694;p=php Report configuration path that is really used, not that is compiled in # it does matter when using -c option --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 83ff3d8356..42aaa17cd2 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -39,7 +39,7 @@ #define SECTION(name) PUTS("

" name "

\n") #define CREDIT_LINE(module, authors) php_info_print_table_row(2, module, authors) - +PHPAPI extern char *php_ini_path; static int _display_module_info(zend_module_entry *module, void *arg) { @@ -191,7 +191,7 @@ PHPAPI void php_print_info(int flag) php_info_print_table_row(2, "Virtual Directory Support", "disabled" ); #endif - php_info_print_table_row(2, "Configuration File (php.ini) Path", CONFIGURATION_FILE_PATH ); + php_info_print_table_row(2, "Configuration File (php.ini) Path", php_ini_path?php_ini_path:CONFIGURATION_FILE_PATH ); #if ZEND_DEBUG php_info_print_table_row(2, "ZEND_DEBUG", "enabled" );