Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79858 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23026 invoked from network); 22 Dec 2014 01:03:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2014 01:03:10 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.43 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wg0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:49261] helo=mail-wg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/26-08160-CCD67945 for ; Sun, 21 Dec 2014 20:03:09 -0500 Received: by mail-wg0-f43.google.com with SMTP id l18so5589773wgh.2 for ; Sun, 21 Dec 2014 17:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=9Pvlwxn1W1SYk2freVnVg8Xw0Qo+8jHtXL4bZwplFek=; b=biqtjEePE8zm+V5kIgiEo9TMLdS9JBX09iZ0gyHQS6MOPpzd37uPZL7d9ZfK/prHT3 AOHPywJhp/8doC9rFsut4TXNybnyAu7/JvoQ3d47N6aYtSH4J23SVtPFj1XaJvNK4xzp ogFBz3LFTBEuWlFE+BoVuT/j6RopdTLKQPPrNWVTZwMw5qrjQjW7X13Ck+2rFW98txQr mbaRYHEqCIlVHs7JmSWubUVeK8OTbw39KGzCkstO7Ys0J9fWGjucbfEgLD5cWAVOQTVW eCV9Kj/d+3on6BCyC16Y1Q6HG9UkJ+hc/zTQZx4nM9kpjvK1jxFdMxQUn268j5qr8X79 Y0lA== X-Received: by 10.194.85.161 with SMTP id i1mr36415949wjz.35.1419210185391; Sun, 21 Dec 2014 17:03:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.222.99 with HTTP; Sun, 21 Dec 2014 17:02:45 -0800 (PST) In-Reply-To: <95AB1C2A-9A36-4771-AECD-685F2FD9A2DD@ajf.me> References: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> <43C635B0-65E4-48DE-B8FA-05AAB26138E3@ajf.me> <95AB1C2A-9A36-4771-AECD-685F2FD9A2DD@ajf.me> Date: Mon, 22 Dec 2014 02:02:45 +0100 Message-ID: To: Andrea Faulds Cc: David Muir , Kevin Israel , Paul Dragoonis , "nf.laupretre@yahoo.fr" , PHP Internals List Content-Type: multipart/alternative; boundary=089e010d852ef64574050ac39ea1 Subject: Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols From: ocramius@gmail.com (Marco Pivetta) --089e010d852ef64574050ac39ea1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 22 December 2014 at 01:52, Andrea Faulds wrote: > > > On 22 Dec 2014, at 00:50, Marco Pivetta wrote: > > > > On 22 December 2014 at 01:43, Andrea Faulds wrote: > > > >> Hey, > >> > >>> On 21 Dec 2014, at 23:33, David Muir wrote: > >>> > >>> The insensitivity makes code brittle. Sometimes the same code will ru= n > >> fine, and other times it breaks depending on what lines triggered the > auto > >> loader. If you instantiate a Foo instance first, then instantiate a ne= w > >> foo, the code runs fine, but if you try to instantiate a new foo first= , > we > >> get a fatal error. > >> > >> I=E2=80=99d say that=E2=80=99s not the fault of insensitivity, but the= fault of > >> poorly-written autoloaders. > > > > > > I'd like to know if there's an autoloader that handles case sensitivity > > without O(2^n) stat calls worst-case scenario (N being namespace/class > name > > parts chars). > > Yes. Those running on Windows or OS X (both use case-insensitive > filesystems by default), > Except that nobody I know of runs production on a case-insensitive filesystem. those that convert the class name to lowercase, those that error on > non-lowercase class names, etc. > That's an interesting idea to be honest: could be brought up in the composer mailing list, I'd say. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --089e010d852ef64574050ac39ea1--