summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-01-02 22:49:31 +0000
committerZeev Suraski <zeev@php.net>2001-01-02 22:49:31 +0000
commitbd0ac7fe14b6f2eb82a2e13a38c3eca5d4fe2e4f (patch)
treeff521b5242f3800f3495220bfdf51f9cf35bbe20 /main/main.c
parent348f6c609c148c2c1f17669dad521fe04cd50a2a (diff)
downloadphp-git-bd0ac7fe14b6f2eb82a2e13a38c3eca5d4fe2e4f.tar.gz
Many patches. I hope I remember them all:
- Make sapi_module available to external modules (PHPAPI) - Make the php.ini path reported in phpinfo() always point to real full path of the php.ini file - Optimized the ISAPI module not to read unnecessary server variables and read necessary variables at most once.
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/main/main.c b/main/main.c
index 8eacdaa7fa..aa6423b122 100644
--- a/main/main.c
+++ b/main/main.c
@@ -106,8 +106,6 @@ void *gLock; /*mutex variable */
/* True globals (no need for thread safety) */
HashTable configuration_hash;
-PHPAPI char *php_ini_path = NULL;
-
#define SAFE_FILENAME(f) ((f)?(f):"-")
@@ -700,15 +698,6 @@ void php_request_shutdown(void *dummy)
}
}
-
-static int php_config_ini_startup(void)
-{
- if (php_init_config() == FAILURE) {
- php_printf("PHP: Unable to parse configuration file.\n");
- return FAILURE;
- }
- return SUCCESS;
-}
static void php_config_ini_shutdown(void)
{
@@ -860,7 +849,7 @@ int php_module_startup(sapi_module_struct *sf)
le_index_ptr = zend_register_list_destructors_ex(NULL, NULL, "index pointer", 0);
FREE_MUTEX(gLock);
- if (php_config_ini_startup() == FAILURE) {
+ if (php_init_config(sf->php_ini_path_override) == FAILURE) {
return FAILURE;
}