#44114 [Asn]: [PATH=] in php.ini on windows does not account for case-insensitive FS
| From: | pajoye@php.net | Date: | Wed, 10 Dec 2008 16:11:44 +0000 |
| Subject: | #44114 [Asn]: [PATH=] in php.ini on windows does not account for case-insensitive FS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131874@lists.php.net to get a copy of this message | ||
ID: 44114
Updated by: pajoye@php.net
Reported By: stas at zend dot com
Status: Assigned
Bug Type: CGI related
Operating System: * (with CiS FS)
PHP Version: 5.3CVS-2008-02-14 (CVS)
Assigned To: pajoye
New Comment:
Not directly related to this bug, but could help to simplify the fix.
Do we need to support relative path in a section? [PATH=../../bar]
I do not see any sane usage for that (variables are more
powerful/predictable and are supported and are expanded by the parser).
Previous Comments:
------------------------------------------------------------------------
[2008-02-18 16:26:27] pajoye@php.net
A short discussion between Dmitry and me, it may be useful for other:
p: we use a hash to cache the settings, the keys come from the path
d: I think you should use virtual_file_ex()
p: that brings the issues about case insensitive filesystems
d: it should restore REAL case of the path
if it works we may use the same thing on all platforms and not only
windows (file systems may not be platform specific).
------------------------------------------------------------------------
[2008-02-18 11:37:12] pajoye@php.net
"But aren't there other case-insensitive filesystems..? For example
MacOSX has something like that..?"
Yes, a lot even. But it is going to be a pain if we have to manage all
of them.
See:
http://en.wikipedia.org/wiki/Comparison_of_file_systems
A possible solution would be to behave what the PHP stream functions
do, comments?
------------------------------------------------------------------------
[2008-02-18 11:36:46] jani@php.net
And for the HOST sections this should propably be done always
regardless of OS.
------------------------------------------------------------------------
[2008-02-18 11:29:24] jani@php.net
Pierre, since you have a patch and also win32 build env available,
I'll assign this to you. But aren't there other case-insensitive
filesystems..? For example MacOSX has something like that..?
------------------------------------------------------------------------
[2008-02-17 13:45:18] pajoye@php.net
Hi Jani,
This patch should do it:
http://blog.thepimp.net/patches/php53_ini_win32.patch.txt
I only tested it in the console for now.
Somehow the .user.ini are ignore when called like:
http://blog.thepimp.net/patches/callcgi.bat.txt
I will setup an apache + fcgi later this week to see if the hash works
as expected :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44114
--
Edit this bug report at http://bugs.php.net/?id=44114&edit=1