We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ecfac commit 3082610Copy full SHA for 3082610
main/php_ini.c
@@ -416,7 +416,6 @@ static char* get_env_location(const char *envname)
416
{
417
char *env_location = getenv(envname);
418
#ifdef PHP_WIN32
419
- char *reg_location;
420
char phprc_path[MAXPATHLEN];
421
#endif
422
@@ -503,11 +502,13 @@ int php_init_config(void)
503
502
int search_path_size;
504
char *default_location;
505
char *env_location = get_env_location("PHPRC");
+#ifdef PHP_WIN32
506
+ char *reg_location;
507
+#endif
508
509
/*
510
* Prepare search path
511
*/
-
512
search_path_size = MAXPATHLEN * 4 + (int)strlen(env_location) + 3 + 1;
513
php_ini_search_path = (char *) emalloc(search_path_size);
514
free_ini_search_path = 1;
0 commit comments