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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

Pull requests:

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: Sun Dec 22 02:01:28 2024 UTC