diff options
author | Shane Caraveo <shane@php.net> | 2003-03-22 18:54:35 +0000 |
---|---|---|
committer | Shane Caraveo <shane@php.net> | 2003-03-22 18:54:35 +0000 |
commit | 26296130ad33faf25b920b4d07ecefd954bb266b (patch) | |
tree | 8e0bc9d84539c7d15026f68eeb6d0f318e3039f7 /main/php_ini.c | |
parent | 0d07e69ba8fdd167e16d9db81b8405e06755468a (diff) | |
download | php-git-26296130ad33faf25b920b4d07ecefd954bb266b.tar.gz |
Fix PHPRC overriding other ini files. This is how PHPRC worked prior to
4.3.x, and is usefull for applications that execute PHP and want to
emulate CGI and define alternate INI files (ie. cannot use -c).
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index ccceb63488..2422392f9b 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -306,6 +306,14 @@ int php_init_config() * Prepare search path */ + /* Add environment location */ + if (env_location[0]) { + if (*php_ini_search_path) { + strcat(php_ini_search_path, paths_separator); + } + strcat(php_ini_search_path, env_location); + } + /* Add cwd */ #ifdef INI_CHECK_CWD if (strcmp(sapi_module.name, "cli") != 0) { @@ -343,14 +351,6 @@ int php_init_config() efree(binary_location); } - /* Add environment location */ - if (env_location[0]) { - if (*php_ini_search_path) { - strcat(php_ini_search_path, paths_separator); - } - strcat(php_ini_search_path, env_location); - } - /* Add default location */ #ifdef PHP_WIN32 default_location = (char *) emalloc(MAXPATHLEN + 1); |