Skip to content

Commit 4b0d5e0

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #79489: .user.ini does not inherit
2 parents 6cb3d5e + bdba0cd commit 4b0d5e0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PHP NEWS
44

55
- Core:
66
. Fixed bug #79566 (Private SHM is not private on Windows). (cmb)
7+
. Fixed bug #79489 (.user.ini does not inherit). (cmb)
78

89
- FFI:
910
. Fixed bug #79571 (FFI: var_dumping unions may segfault). (cmb)

sapi/cgi/cgi_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,11 @@ static void php_cgi_ini_activate_user_config(char *path, size_t path_len, const
835835
if (strncmp(s1, s2, s_len) == 0) {
836836
#endif
837837
char *ptr = s2 + doc_root_len;
838+
#ifdef PHP_WIN32
839+
while ((ptr = strpbrk(ptr, "\\/")) != NULL) {
840+
#else
838841
while ((ptr = strchr(ptr, DEFAULT_SLASH)) != NULL) {
842+
#endif
839843
*ptr = 0;
840844
php_parse_user_ini_file(path, PG(user_ini_filename), entry->user_config);
841845
*ptr = '/';

0 commit comments

Comments
 (0)