File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments