From 15efb96d4ce8003cca1c5fdcda4488c1827065d4 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 22 Jul 2020 10:48:15 +0200 Subject: 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(-) (limited to 'win32') diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index b641c39f5f..0cf8a11959 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@" -- cgit v1.2.1