Edit report at https://bugs.php.net/bug.php?id=67220&edit=1
ID: 67220
Comment by: andreas at heigl dot org
Reported by: nicolas dot grekas+php at gmail dot com
Summary: realpath() on MacOSX doesn't normalize the case of
characters
Status: Re-Opened
Type: Bug
Package: Filesystem function related
Operating System: MacOSX/Darwin
PHP Version: 5.5.12
Block user comment: N
Private report: N
New Comment:
Has this issue been tested with both case-sensitive AND case-insensitive HFS+ and are the results
the same?
Or is it only an issue with case-insensitive HFS+?
Previous Comments:
------------------------------------------------------------------------
[2015-08-05 15:09:39] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=337295
Log: added note regarding normalization of the character case on case-insensitive
filesystems (see #67220)
------------------------------------------------------------------------
[2015-08-04 15:06:35] bishop@php.net
I agree with tyrael: "I think closing the issue with Not a bug is wrong, we should either keep
it open until we can fix it, or mark as Won't fix, and document it."
Side note, jpauli talks about the intra-path caching rasmus mentioned in this article: http://jpauli.github.io/2014/06/30/realpath-cache.html
------------------------------------------------------------------------
[2014-08-01 10:41:22] rullaf at gmail dot com
Please note this is sill an issue. Either the documentation should be changed to warn the realpath
function does NOT return canonical path (it currently says realpath â Returns
canonicalized absolute pathname) or the function should be fixed.
------------------------------------------------------------------------
[2014-05-07 18:10:44] tyrael@php.net
for the record HFS+ is optionally supports case sensitivity, but the current default is the case
insensitive/preserve mode AFAIK.
I don't have a windows box at hand at the moment, but I'm fairly sure that realpath on
windows does indeed correctly canonizes the path (http://www.php.net/realpath#example-2512 seems to
be confirming this).
I think closing the issue with Not a bug is wrong, we should either keep it open until we can fix
it, or mark as Won't fix, and document it.
------------------------------------------------------------------------
[2014-05-07 15:14:41] nicolas dot grekas+php at gmail dot com
The doc says "returns the canonicalized absolute pathname"
"canonicalized" is what makes this a bug.
An other example that fails is require_once:
require_once 'TEST.PHP';
require_once 'test.php';
This does require the same file twice.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=67220
--
Edit this bug report at https://bugs.php.net/bug.php?id=67220&edit=1