From d435ddbe526e8fdcb9786c0a1b7906eff876f6e4 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 26 Sep 2011 08:49:28 +0000 Subject: [PATCH] - be sure to check if the var ha not been removed between the two calls --- main/php_ini.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/php_ini.c b/main/php_ini.c index 7d7c26012e..1ffc08b187 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -421,7 +421,11 @@ int php_init_config(TSRMLS_D) env_location = ""; } else { size = GetEnvironmentVariableA("PHPRC", phprc_path, size); - env_location = phprc_path; + if (size == 0) { + env_location = ""; + } else { + env_location = phprc_path; + } } } } -- 2.50.1