Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85998 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71004 invoked from network); 28 Apr 2015 17:35:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Apr 2015 17:35:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.178 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.213.178 mail-ig0-f178.google.com Received: from [209.85.213.178] ([209.85.213.178:35972] helo=mail-ig0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/29-17556-AC4CF355 for ; Tue, 28 Apr 2015 13:35:07 -0400 Received: by igblo3 with SMTP id lo3so96077664igb.1 for ; Tue, 28 Apr 2015 10:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=ZzzEICsfinPflxGay0H/MZXiwUy1MaIeY+OVygsxlPc=; b=UZSaCPyFU9xGGDCz0qpKXGUUjHwftQG8Pw7adYLp1HZMICX0x8DbNroI2FEnoKUzWd aiEw8PcxWOXtkBzn4oGWBkWAm5Y0AsY1zB0qmuy2TBC5smCKdMkhKer3odtHsLgM6nMU 3WZj/txAaNLXPMrzIrkFYldx50qtRssqLn4cWrLPvxo2wXuqKez6/jBTKvePBlIUxHqP TVy2cT9fj9hfk0SdHAYkLkHVOM2ItzXTowzdrb+ZMbR3rg4DPL38nPgIEeOVnI0MkjCV 0Cg9ImqLYaIwO6l8+9uyHoHySwk//1GTPJq195eIVJar9bXAhEDj59+wwueDfxpF8afm 1LuQ== MIME-Version: 1.0 X-Received: by 10.42.79.197 with SMTP id s5mr19321762ick.85.1430242503668; Tue, 28 Apr 2015 10:35:03 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.79.98.67 with HTTP; Tue, 28 Apr 2015 10:35:03 -0700 (PDT) In-Reply-To: <007a01d081bd$75ada260$6108e720$@php.net> References: <553DBEC4.7000609@gmail.com> <006c01d081a7$0e600640$2b2012c0$@php.net> <553F81DD.6020506@birkholz.biz> <007a01d081bd$75ada260$6108e720$@php.net> Date: Tue, 28 Apr 2015 11:35:03 -0600 X-Google-Sender-Auth: pMG_cLXk578iMGzYdp2x-yoMQNo Message-ID: To: "francois@php.net" Cc: Dennis Birkholz , internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 From: levim@php.net (Levi Morrison) On Tue, Apr 28, 2015 at 8:13 AM, Fran=C3=A7ois Laupretre = wrote: >> De : Dennis Birkholz [mailto:dennis@birkholz.biz] >> >> I would like PHP to make all class/trait/interface names case-sensitive >> and use only lower-case names for the scalar type hints (same for >> object, array, etc.). This would solve most problems. Class names are >> kind of case sensitive in applications that rely on autoloading on >> platforms with case sensitive file systems. > > 1. I proposed making class names case-sensitive and it was clearly reject= ed, most considering it is a *huge* BC break for almost no benefit. I perso= nally don't know any software which uses class names in a case-insensitive = manner but it seems others do ! I am not sure, but scalar type hints were p= robably implemented as case-insensitive too. In other words, if you're read= y to relaunch the case-sensitivity discussion, feel free to do it. To be completely accurate, it was rejected *for PHP 7*. PHP 7 was announced suddenly and rushed through. I think a BC break of this magnitude in PHP 7 would be incredibly painful *because of the timetable*. Whereas if we decide now that in PHP 8 all identifiers will be case sensitive that's a different story because of the timeline. Knowing years in advance that something will happen gives you ample time to migrate (like we are doing with PHP 4 constructors in the PHP 7 series; they are deprecated and support will be removed in PHP 8).