cvs: php4 /ext/standard info.c
| From: | Stanislav Malyshev | Date: | Tue, 25 Jul 2000 10:54:07 +0000 |
| Subject: | cvs: php4 /ext/standard info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-912@lists.php.net to get a copy of this message | ||
stas Tue Jul 25 03:54:07 2000 EDT
Modified files:
/php4/ext/standard info.c
Log:
Report configuration path that is really used, not that is compiled in
# it does matter when using -c option
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.106 php4/ext/standard/info.c:1.107
--- php4/ext/standard/info.c:1.106 Sun Jul 23 18:39:49 2000
+++ php4/ext/standard/info.c Tue Jul 25 03:54:07 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.106 2000/07/24 01:39:49 david Exp $ */
+/* $Id: info.c,v 1.107 2000/07/25 10:54:07 stas Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -39,8 +39,8 @@
#define SECTION(name) PUTS("<H2>" name "</H2>\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)
{
int show_info_func = *((int *) arg);
@@ -191,7 +191,7 @@
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" );