Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79857 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21301 invoked from network); 22 Dec 2014 00:53:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2014 00:53:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.207 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.207 imap2-2.ox.privateemail.com Received: from [192.64.116.207] ([192.64.116.207:34617] helo=imap2-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/D5-08160-A8B67945 for ; Sun, 21 Dec 2014 19:53:31 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 9BA6F8C0083; Sun, 21 Dec 2014 19:53:27 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JPYE27F9Bze5; Sun, 21 Dec 2014 19:53:27 -0500 (EST) Received: from [192.168.0.13] (unknown [94.13.96.117]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 542E38C0009; Sun, 21 Dec 2014 19:53:26 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Mon, 22 Dec 2014 00:52:53 +0000 Cc: David Muir , Kevin Israel , Paul Dragoonis , "nf.laupretre@yahoo.fr" , PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: <95AB1C2A-9A36-4771-AECD-685F2FD9A2DD@ajf.me> References: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> <43C635B0-65E4-48DE-B8FA-05AAB26138E3@ajf.me> To: Marco Pivetta X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols From: ajf@ajf.me (Andrea Faulds) > On 22 Dec 2014, at 00:50, Marco Pivetta wrote: >=20 > On 22 December 2014 at 01:43, Andrea Faulds wrote: >=20 >> Hey, >>=20 >>> On 21 Dec 2014, at 23:33, David Muir wrote: >>>=20 >>> The insensitivity makes code brittle. Sometimes the same code will = run >> fine, and other times it breaks depending on what lines triggered the = auto >> loader. If you instantiate a Foo instance first, then instantiate a = new >> foo, the code runs fine, but if you try to instantiate a new foo = first, we >> get a fatal error. >>=20 >> I=E2=80=99d say that=E2=80=99s not the fault of insensitivity, but = the fault of >> poorly-written autoloaders. >=20 >=20 > 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), those that convert the class name to lowercase, = those that error on non-lowercase class names, etc. -- Andrea Faulds http://ajf.me/