Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87649 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91972 invoked from network); 5 Aug 2015 15:23:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2015 15:23:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=andreas@heigl.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andreas@heigl.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain heigl.org from 195.191.240.18 cause and error) X-PHP-List-Original-Sender: andreas@heigl.org X-Host-Fingerprint: 195.191.240.18 hos109.unaxus.net Received: from [195.191.240.18] ([195.191.240.18:60925] helo=hos109.unaxus.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/10-11835-F7A22C55 for ; Wed, 05 Aug 2015 11:23:44 -0400 Received: from tmo-106-114.customers.d1-online.com ([80.187.106.114]:4753 helo=[10.75.19.25]) by hos109.unaxus.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1ZN0Xd-004OcQ-1n; Wed, 05 Aug 2015 17:23:41 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12H143) In-Reply-To: Date: Wed, 5 Aug 2015 17:23:39 +0200 Cc: Nicolas Grekas , Pierre Joye Content-Transfer-Encoding: quoted-printable Message-ID: <8295C595-49DA-4C76-9B0A-BC168440069C@heigl.org> References: To: PHP internals X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hos109.unaxus.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - heigl.org X-Get-Message-Sender-Via: hos109.unaxus.net: authenticated_id: a.heigl+heigl.org/only user confirmed/virtual account not confirmed Subject: Re: [PHP-DEV] realpath() on MacOSX doesn't normalize the case of characters From: andreas@heigl.org (Andreas Heigl) > Am 05.08.2015 um 17:06 schrieb Pierre Joye : >=20 > Hi, >=20 > On Aug 4, 2015 7:23 PM, "Nicolas Grekas" > wrote: >>=20 >> Hello, >>=20 >> I reported this bug one year ago (https://bugs.php.net/67220) and it is > now >> closed as "not a bug". I'd like this to be reconsidered. >>=20 >> The documentation of realpath() says: >>=20 >>> realpath() expands all symbolic links and resolves references to '/./', >>> '/../' and extra '/' characters in the input path ***and returns the >>> canonicalized absolute pathname***. >>>=20 >>=20 >> the last part of this description is IMO what qualifies this behavior on >> MacOSX as a bug. >>=20 >> I'm asking for this now because I spend many hours on Syfony trying to > find >> an efficient workaround, and this is far from easy. Here is the fastest w= e >> found (it's a mix of scandir()+getcwd()+caching): >> https://github.com/symfony/symfony/pull/15443 >>=20 >> If realpath were behaving on OSX the same as it does on Windows (and > Linux), >> I could remove 60 lines of wtf lines. >>=20 >> Do anyone else agree? >=20 > I think it could be fixed but can be tricky. >=20 > For windows, there is no path normalization either btw. It would makes > realpath more expensive. >=20 > Also as far as I remember the case sensitivity on osx (for hfs) can be > enabled optionally, or? Case sensitivity is not an issue of OS X but of the underlying Filesystem wh= ich is by default on HFS+ disabled. You can enable case sensitivity by refor= mating the partition using case-sensitive HFS+=20 Cheers Andreas --=20 Andreas Heigl andreas@heigl.org=