Bug #67220 [NEW]: realpath() on MacOSX doesn't normalize the case of characters

From: Date: Tue, 06 May 2014 15:24:24 +0000
Subject: Bug #67220 [NEW]: realpath() on MacOSX doesn't normalize the case of characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185671@lists.php.net to get a copy of this message
From:             nicolas dot grekas+php at gmail dot com
Operating system: MacOSX/Darwin
PHP version:      5.5.12
Package:          Filesystem function related
Bug Type:         Bug
Bug description:realpath() on MacOSX doesn't normalize the case of characters

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



Thread (11 messages)

« previous php.bugs (#185671) next »