Bug #79489 [PATCH]: .user.ini does not inherit
| From: | cmb@php.net | Date: | Mon, 20 Apr 2020 14:47:08 +0000 |
| Subject: | Bug #79489 [PATCH]: .user.ini does not inherit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226689@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79489&edit=1
ID: 79489
Patch added by: cmb@php.net
Reported by: steve at pcfive dot co dot uk
Summary: .user.ini does not inherit
Status: Verified
Type: Bug
Package: CGI/CLI related
Operating System: Windows
PHP Version: 7.4.5
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix #79489: .user.ini does not inherit
On GitHub: https://github.com/php/php-src/pull/5423
Patch: https://github.com/php/php-src/pull/5423.patch
Previous Comments:
------------------------------------------------------------------------
[2020-04-18 13:48:17] steve at pcfive dot co dot uk
Description:
------------
Started with a XAMPP build
Switched to mod_fcgid
Apache 2.4.41, PHP 7.4.5
Specifically on Windows:
I found information in .user.ini files was not inheriting from parent directories, even when the
directory tree was underneath the document root.
I took a closer look at cgi_main.c it seems that \'s have been normalised to /'s at this
point. However DEFAULT_SLASH is set to \ so no parent paths are ever found.
I was able to make a workaround on my local build of PHP by changing both occurences of
DEFAULT_SLASH in cgi_main.c to the literal '/'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79489&edit=1