Skip to content

Commit acb1e07

Browse files
committed
Changed priority of PHPRC environment variable on win32 to be higher then value from registry.
1 parent a32fb32 commit acb1e07

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ PHP NEWS
33
?? ??? 2006, PHP 5.2.0
44
- Reimplementation of Apache2Filter, PHP can now be an arbitrary filter
55
in the chain and will read the script from the Apache stream. (John)
6+
- Changed priority of PHPRC environment variable on win32 to be higher then
7+
value from registry. (Dmitry)
68
- Changed __toString() to be called wherever applicable. (Marcus)
79
- Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus)
810
- Changed realpath cache to be disabled when "open_basedir" or "safe_mode"

main/php_ini.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,14 @@ int php_init_config(TSRMLS_D)
310310
free_ini_search_path = 1;
311311
php_ini_search_path[0] = 0;
312312

313+
/* Add environment location */
314+
if (env_location[0]) {
315+
if (*php_ini_search_path) {
316+
strcat(php_ini_search_path, paths_separator);
317+
}
318+
strcat(php_ini_search_path, env_location);
319+
}
320+
313321
#ifdef PHP_WIN32
314322
/* Add registry location */
315323
reg_location = GetIniPathFromRegistry();
@@ -322,14 +330,6 @@ int php_init_config(TSRMLS_D)
322330
}
323331
#endif
324332

325-
/* Add environment location */
326-
if (env_location[0]) {
327-
if (*php_ini_search_path) {
328-
strcat(php_ini_search_path, paths_separator);
329-
}
330-
strcat(php_ini_search_path, env_location);
331-
}
332-
333333
/* Add cwd (only with CLI) */
334334
if (strcmp(sapi_module.name, "cli") == 0) {
335335
if (*php_ini_search_path) {

0 commit comments

Comments
 (0)