php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: steve at pcfive dot co dot uk
New email:
PHP Version: OS:

 

 [2020-04-18 13:48 UTC] 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 '/'


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-20 14:37 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-04-20 14:47 UTC] cmb@php.net
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
 [2020-05-12 09:49 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bdba0cd3d270d5c0511709e3b8e2e0cd6186a410
Log: Fix #79489: .user.ini does not inherit
 [2020-05-12 09:49 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC