Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79940 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11029 invoked from network); 25 Dec 2014 12:37:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Dec 2014 12:37:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.44 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.44 mail-qa0-f44.google.com Received: from [209.85.216.44] ([209.85.216.44:53765] helo=mail-qa0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/95-07310-9050C945 for ; Thu, 25 Dec 2014 07:37:29 -0500 Received: by mail-qa0-f44.google.com with SMTP id bm13so6456115qab.3 for ; Thu, 25 Dec 2014 04:37:26 -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=MELqsKwmj29aaHwhAGQB0gtU+1ISOw/05H/m/i2o5c4=; b=IRlEB3GByaklXi3jEb34JWCCsTfbQf44RKZMzLhSoRcr5ZpFcAhR7vvP02CUqCo20x fn5wUUXTSLPbOp0aBbTbTkScJjt+yGGQVPC3IiY8/ZfE2Vcqvjdr8KLkdLkPAHwiqpEh 9E68hAAsdJ1ZMv3qTFvgZVDZpTYHvUIzqRDaPmcp/lc1plSLdUxapt6z/4UoqFqxl08O GRM9P6posftQjbZa694vz1Q8cwi58YaduGua+BhJNhLPeFtpipE5X4cdgLfDIk/hUtJm njsPv2O24Yz/EXORg5WW5rBoma7MjBxyaJJHTmbxabsGeYG9DvtHI/yYnBRMFfdjMivy IZSQ== MIME-Version: 1.0 X-Received: by 10.229.140.72 with SMTP id h8mr61582504qcu.25.1419511046273; Thu, 25 Dec 2014 04:37:26 -0800 (PST) Received: by 10.140.22.106 with HTTP; Thu, 25 Dec 2014 04:37:26 -0800 (PST) Received: by 10.140.22.106 with HTTP; Thu, 25 Dec 2014 04:37:26 -0800 (PST) In-Reply-To: References: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> <000d01d01ec2$46f2f280$d4d8d780$@yahoo.fr> <009a01d01ff4$7d145470$773cfd50$@tekwire.net> Date: Thu, 25 Dec 2014 23:37:26 +1100 Message-ID: To: Nikita Popov Cc: Yasuo Ohgaki , Ferenc Kovacs , PHP Internals , Alain Williams , Guilherme Blanco , David Muir , Andrea Faulds , Xinchen Hui , Kevin Israel , Mike Dugan , francois@tekwire.net Content-Type: multipart/alternative; boundary=001a1132ee40ab0336050b09abb9 Subject: Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols From: pierre.php@gmail.com (Pierre Joye) --001a1132ee40ab0336050b09abb9 Content-Type: text/plain; charset=UTF-8 On Dec 25, 2014 7:08 PM, "Nikita Popov" wrote: > May I recommend to only target class and class-like names for an initial RFC? Those have the strongest argument in favor of case-sensitivity given how current autoloader implementations work - essentially the case-insensitivity doesn't properly work anyway in modern code. > > Constants in particular are more problematic, because they are currently only partially case-sensitive and there are some constants (namely true, false and null) where case sensitivity must not be enforced. So if you want to make constants fully case sensitive those three would have to become reserved keywords. > > So, I think this has more chances if you tackle one issue at a time. I'd also appreciate having a voting option for removing case-insensitivity right away, as opposed to throwing E_STRICT/E_DEPRECATED. If we want to change this, I personally would rather drop it right away than start throwing E_STRICT warnings that would make the case-insensitive usage impossible anyway. > At the very least that sounds like a less intrusive step, as methods and classes are usually already written "correctly". --001a1132ee40ab0336050b09abb9--