From 1971aaeb243226a4dbf5b2b2838efd4eece1b1a0 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 22 Jul 2020 10:48:15 +0200 Subject: [PATCH] Fix #79884: PHP_CONFIG_FILE_PATH is meaningless It does not make sense to make assumptions about `PHP_CONFIG_FILE_PATH` during build time, since that value is never used during run time on Windows. Since there is no `--with-config-file-path` on Windows either, we define `PHP_CONFIG_FILE_PATH` as `""`. --- win32/build/config.w32.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index b641c39f5f61e..0cf8a11959f46 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -9,7 +9,7 @@ #define NTDDI_VERSION 0x06010000 /* Default PHP / PEAR directories */ -#define PHP_CONFIG_FILE_PATH (getenv("SystemRoot")?getenv("SystemRoot"):"") +#define PHP_CONFIG_FILE_PATH "" #define CONFIGURATION_FILE_PATH "php.ini" #define PEAR_INSTALLDIR "@PREFIX@\\pear" #define PHP_BINDIR "@PREFIX@"