|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79489 .user.ini does not inherit
Submitted: 2020-04-18 13:48 UTC Modified: 2020-04-20 14:37 UTC
From: steve at pcfive dot co dot uk Assigned: cmb (profile)
Status: Closed Package: CGI/CLI related
PHP Version: 7.4.5 OS: Windows
Private report: No CVE-ID: None
 [2020-04-18 13:48 UTC] steve at pcfive dot co dot uk
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 '/'


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-20 14:37 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-04-20 14:47 UTC]
The following pull request has been associated:

Patch Name: Fix #79489: .user.ini does not inherit
On GitHub:
 [2020-05-12 09:49 UTC]
Automatic comment on behalf of
Log: Fix #79489: .user.ini does not inherit
 [2020-05-12 09:49 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 20:01:39 2024 UTC