Skip to content

Commit 15efb96

Browse files
committed
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 `""`.
1 parent 6b99a8b commit 15efb96

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 7.3.22
44

5+
- Core:
6+
. Fixed bug #79884 (PHP_CONFIG_FILE_PATH is meaningless). (cmb)
7+
58
?? ??? ????, PHP 7.3.21
69

710
- Apache:

win32/build/config.w32.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define NTDDI_VERSION 0x06010000
1010

1111
/* Default PHP / PEAR directories */
12-
#define PHP_CONFIG_FILE_PATH (getenv("SystemRoot")?getenv("SystemRoot"):"")
12+
#define PHP_CONFIG_FILE_PATH ""
1313
#define CONFIGURATION_FILE_PATH "php.ini"
1414
#define PEAR_INSTALLDIR "@PREFIX@\\pear"
1515
#define PHP_BINDIR "@PREFIX@"

0 commit comments

Comments
 (0)