Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27545 invoked from network); 30 Apr 2015 09:23:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2015 09:23:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=florian@margaine.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=florian@margaine.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain margaine.com from 209.85.213.173 cause and error) X-PHP-List-Original-Sender: florian@margaine.com X-Host-Fingerprint: 209.85.213.173 mail-ig0-f173.google.com Received: from [209.85.213.173] ([209.85.213.173:38450] helo=mail-ig0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/46-27026-F74F1455 for ; Thu, 30 Apr 2015 05:23:12 -0400 Received: by igbhj9 with SMTP id hj9so7665252igb.1 for ; Thu, 30 Apr 2015 02:23:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QLBftexam/LpCCQjoLgBchjRnUeAC2ZzEHkhcYxr3IE=; b=YJjpa1QgUZisHXpM40LSbLtnVAN54ZeWOF9t+pZ3ACxbWxY6W75tRrp7mrT7FeWtVq YY+uaeZEoyC0TIC0qhC4J7t2WXGdTkiFo4fe7cMvC9GJMqUkrFZvOPqTTbl6k0pRBjhU SDDQZH5kx3LK0kXKt+R0CWypVKUAMD3ajEfoANT5lN3W+NJRWZotgUM3b+YVsr2mKPz3 DccG+wqe2pqEYqatQb2I8Sw2Nxza375aNEjo6RsT03KEpxDLbqPQ37qblfLMeStikE8n SwNFeaJYQrPOIDa4sLbk9+NMQQ3wOKV1/HXvjg+7jpXZ+QuSU0/tpCDdmgKj2cra6+RI fCJw== X-Gm-Message-State: ALoCoQmdRs/dqUTevWA/2G63a+WjLSnUxfH20K6d3sQWUTMNg6X0fyGcqsA58RDWCEajV0FZ4qM/ MIME-Version: 1.0 X-Received: by 10.50.8.6 with SMTP id n6mr2309600iga.12.1430385789152; Thu, 30 Apr 2015 02:23:09 -0700 (PDT) Received: by 10.107.143.22 with HTTP; Thu, 30 Apr 2015 02:23:08 -0700 (PDT) X-Originating-IP: [90.42.250.193] Received: by 10.107.143.22 with HTTP; Thu, 30 Apr 2015 02:23:08 -0700 (PDT) In-Reply-To: <016501d08324$8d300460$a7900d20$@php.net> References: <55415E10.7040908@gmx.de> <016501d08324$8d300460$a7900d20$@php.net> Date: Thu, 30 Apr 2015 11:23:08 +0200 Message-ID: To: francois@php.net Cc: nikic@php.net, PHP Internals , Christoph Becker Content-Type: multipart/alternative; boundary=089e0115f6dadada3b0514eda4ec Subject: RE: [PHP-DEV] Reserve even more type hints RFC From: florian@margaine.com (Florian Margaine) --089e0115f6dadada3b0514eda4ec Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Le 30 avr. 2015 11:04, "Fran=C3=A7ois Laupretre" a =C3= =A9crit : > > > De : Christoph Becker [mailto:cmbecker69@gmx.de] > > > > Relying on documentation only seems to be insufficient to me. Consider > > a developer not reading the documentation and facing the issue that > > his/her code might break with PHP 7.1 (i.e. a minor version). > > +1. I already asked if we should enforce reserved names by a message and most replied that documentation was enough. This is the lazy (I could say 'political') option and can only lead to bad surprises when we decide to use the names. At this time, saying "People should have read the doc" won't help them in any way, especially if their code dates back from before 7.0, when this doc didn't exist yet. > > We don't need a warning there, we need a fatal error. These names are *invalid* as class names. Should we throw fatal errors for functions starting with 2 underscores too? > > Regards > > Fran=C3=A7ois > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Cheers, Florian Margaine --089e0115f6dadada3b0514eda4ec--