Bug #79489 [NEW]: .user.ini does not inherit

From: Date: Sat, 18 Apr 2020 13:48:17 +0000
Subject: Bug #79489 [NEW]: .user.ini does not inherit
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226654@lists.php.net to get a copy of this message
From:             steve at pcfive dot co dot uk
Operating system: Windows
PHP version:      7.4.5
Package:          CGI/CLI related
Bug Type:         Bug
Bug description:.user.ini does not inherit

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 bug report at https://bugs.php.net/bug.php?id=79489&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79489&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79489&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79489&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79489&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79489&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79489&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79489&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79489&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79489&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79489&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79489&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79489&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79489&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79489&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79489&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79489&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79489&r=mysqlcfg


Thread (4 messages)

« previous php.bugs (#226654) next »