Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87603 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45410 invoked from network); 4 Aug 2015 12:23:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2015 12:23:10 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.169 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:33517] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/83-24673-AAEA0C55 for ; Tue, 04 Aug 2015 08:23:07 -0400 Received: by wijp15 with SMTP id p15so3430859wij.0 for ; Tue, 04 Aug 2015 05:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=ZTqFPSbqrF4bj4J032vHqeThEW7cPil3nCqVall10mw=; b=P1jpdh3mrRVJwkCIq0ZU6bTiBnyKd4f900RNJZRLZwvcX6SraV/NufGyrnxgCLcWqg 6xysBsgkA8onJYMxli32BUqgUJ9gTh6p+55Q7BsZLWbkzvMv7ajpXM73YTT2xyIwuV8G mUQl3ae6oAqlDfrYQb6MxPSeAJpb9rr7U24moJPQyZWhSNsRj+rtms1dcxH4nkWaT0SI gPpQAwicuY/3Sh33C5IN7ii+j224nSykLr5ede86hUc8O0MMnpGKdZlvI/NspkWIzbhf mGz/K9RhsoJB1VeNyliDuqSV/51FnH5SbXLYD9pdKrBOnUoBll67F6r+2YjS+fG6KKaT EeZQ== X-Received: by 10.194.239.167 with SMTP id vt7mr8063516wjc.5.1438690984281; Tue, 04 Aug 2015 05:23:04 -0700 (PDT) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 10.27.172.10 with HTTP; Tue, 4 Aug 2015 05:22:44 -0700 (PDT) Date: Tue, 4 Aug 2015 14:22:44 +0200 X-Google-Sender-Auth: gSToYADtWaz7ah1VNhg2jCJfwSQ Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e013c60c00f4cb9051c7b5906 Subject: realpath() on MacOSX doesn't normalize the case of characters From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --089e013c60c00f4cb9051c7b5906 Content-Type: text/plain; charset=UTF-8 Hello, 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. The documentation of realpath() says: > realpath() expands all symbolic links and resolves references to '/./', > '/../' and extra '/' characters in the input path ***and returns the > canonicalized absolute pathname***. > the last part of this description is IMO what qualifies this behavior on MacOSX as a bug. 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 we found (it's a mix of scandir()+getcwd()+caching): https://github.com/symfony/symfony/pull/15443 If realpath were behaving on OSX the same as it does on Windows (and Linux), I could remove 60 lines of wtf lines. Do anyone else agree? Regards, Nicolas --089e013c60c00f4cb9051c7b5906--