Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64474 invoked from network); 4 Aug 2015 14:39:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2015 14:39:56 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.177 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.217.177 mail-lb0-f177.google.com Received: from [209.85.217.177] ([209.85.217.177:33586] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/B2-49831-9BEC0C55 for ; Tue, 04 Aug 2015 10:39:53 -0400 Received: by lbbyj8 with SMTP id yj8so7320611lbb.0 for ; Tue, 04 Aug 2015 07:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BN3Ys/pKx0f6RLFKg0H/awCxSSfGvn8iBonkW1u9ucg=; b=IPnb/7rSFUAAALiL2W9diAxjAhX6vidh00LVAsF2lIVV/aRmzQy5WiXaEzNWxhrzic 90xmKXpioNxs14ju11tQFrZSUPerNoaaM7aNgfSNjMmBSzhCiNoYkSmk79Q3HDvDLNX2 H34jR4YHLVPqXu1C4VrL5e7bwkLmb5/7M9CV+9Aogh9rudUgk1B4pQ2eaPyvL3+jSzBq Md+/CT3uWpuP5GLFV8VY0GlByTVL0o0/zt6im9gFvMe275+gp4mFmXMZPUCXgNlC50lJ jT6xC+UXsTgBqKkHOKFriMFtwTpS/3I4j7js0qHXJb/4iBFOxQ4Q78vbY1lN4+kjUQL9 D+ZA== MIME-Version: 1.0 X-Received: by 10.152.29.200 with SMTP id m8mr3860866lah.83.1438699190535; Tue, 04 Aug 2015 07:39:50 -0700 (PDT) Received: by 10.152.43.105 with HTTP; Tue, 4 Aug 2015 07:39:50 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Aug 2015 16:39:50 +0200 Message-ID: To: Nicolas Grekas Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0158c29c30cbba051c7d42ed Subject: Re: [PHP-DEV] realpath() on MacOSX doesn't normalize the case of characters From: tyra3l@gmail.com (Ferenc Kovacs) --089e0158c29c30cbba051c7d42ed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Aug 4, 2015 at 2:22 PM, Nicolas Grekas wrote: > 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 fi= nd > 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 > > 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 > I do and commented on the ticket last year. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --089e0158c29c30cbba051c7d42ed--