Bug #67220 [Opn->Nab]: realpath() on MacOSX doesn't normalize the case of characters
| From: | levim@php.net | Date: | Wed, 07 May 2014 14:58:51 +0000 |
| Subject: | Bug #67220 [Opn->Nab]: realpath() on MacOSX doesn't normalize the case of characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185692@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67220&edit=1
ID: 67220
Updated by: levim@php.net
Reported by: nicolas dot grekas+php at gmail dot com
Summary: realpath() on MacOSX doesn't normalize the case of
characters
-Status: Open
+Status: Not a bug
Type: Bug
Package: Filesystem function related
Operating System: MacOSX/Darwin
PHP Version: 5.5.12
Block user comment: N
Private report: N
New Comment:
Almost certainly this is because HFS+ is case-sensitive by default. Currently realpath "expands
all symbolic links and resolves references to '/./', '/../' and extra
'/' characters in the input path and returns the canonicalized absolute pathname".
Nowhere does that indicate anything about case sensitivity.
Previous Comments:
------------------------------------------------------------------------
[2014-05-06 15:24:24] nicolas dot grekas+php at gmail dot com
Description:
------------
See test script.
__FILE__, __DIR__, ReflectionClass::getFilename(), etc. are also affected (but getcwd() is OK).
Test script:
---------------
<?php
var_dump(realpath('/Users') === realpath('/users'));
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67220&edit=1