Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79881 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26058 invoked from network); 23 Dec 2014 07:47:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Dec 2014 07:47:38 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.171 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.171 mail-qc0-f171.google.com Received: from [209.85.216.171] ([209.85.216.171:33743] helo=mail-qc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/70-17517-81E19945 for ; Tue, 23 Dec 2014 02:47:37 -0500 Received: by mail-qc0-f171.google.com with SMTP id r5so4412350qcx.30 for ; Mon, 22 Dec 2014 23:47:33 -0800 (PST) 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=Zo2Q7QMFRKlvWHZnG34Sal9w7MNfIPj7F+8RYnMp7RU=; b=A2TLurmvsC3i0yQFOZLSuDS2q85g0b/Q89v/+Zirqehm5OTjZ83hJNctPqksF+LYrk 3cuFeBW6iofAWMElkX4gfXGRrLO1DSh2s+HUuBnDNnCCnaak6NA9WPqzwUayn7joJKw1 W2t90UCcXXm9jnH78UO3M8re8bwpx4Py6YC7f91LKFhtvVmCkpHopJX0JStm7C+82i5W Hq6C36Wq5oaDnifJzj5z3sGTiwK47EjKyGlrBF1EH8k+N9jvHmPuXt+lhLm8ydLhUcZE nlnt8zDhqXgCu4/WwGzSvTqCxIqSDDUTJeQA2vGzpqMnSyEligcvtXi/FiwoINZtXOu+ vofQ== MIME-Version: 1.0 X-Received: by 10.224.112.9 with SMTP id u9mr34935886qap.18.1419320853222; Mon, 22 Dec 2014 23:47:33 -0800 (PST) Received: by 10.140.22.106 with HTTP; Mon, 22 Dec 2014 23:47:33 -0800 (PST) In-Reply-To: References: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> Date: Tue, 23 Dec 2014 08:47:33 +0100 Message-ID: To: Ferenc Kovacs Cc: "nf.laupretre@yahoo.fr" , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols From: pierre.php@gmail.com (Pierre Joye) On Tue, Dec 23, 2014 at 2:17 AM, Ferenc Kovacs wrote: > On Sat, Dec 20, 2014 at 11:01 PM, F & N Laupretre > wrote: > >> Hi, >> >> >> >> I don't know if this was discussed before. So, tell me what you think >> before >> I write an RFC. >> >> >> >> I would like to propose that namespaces, functions, and classes become >> case-sensitive (constants are already case-sensitive). Actually, I never >> understood why they are case-insensitive. Even if the performance gain is >> negligible, I think it could be the right time to question this. >> >> > I think that the cost of that BC break is too high, and will only happen in > an alternative implementation (if at all). > Putting that aside, if we want to go down that road, we should first > discourage people from such usage, and as we never did that(no E_STRICT no > E_DEPRECATED) it would be extremely rude to remove support for that in 7.0. > I think that a Pull Request for adding E_STRICT or maybe even E_DEPRECATED > would have a chance of getting voted in but depends on the implementation > and how much overhead would it cost. I cannot agree on even adding a flag here. There is no gain, the code base won't change but the cost of the notice/deprecation will be too high as well, relatively speaking. CS can be used and enforced on a per project basis if a project wants to rely on the same cases for his application, libs or modules. Platforms with case insensitive file systems will work just fine. Anyone dying while waiting to see PHP having case sensitive symbols handling should go ahead with a RFC. He will also have to deal with file ops while being at it. Should they remain case insensitive? Do manual checks to match the path actually being requested (ie. possible on windows using meta info), or keep everything the way it is now? These are all things we should take into account, not only "heh, let make symbols case sensitive". Cheers, -- Pierre @pierrejoye | http://www.libgd.org