Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106979 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76127 invoked from network); 12 Sep 2019 19:03:36 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 12 Sep 2019 19:03:36 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 17BE62D1FD0 for ; Thu, 12 Sep 2019 09:39:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS13030 195.191.240.0/23 X-Spam-Virus: No Received: from hos109.unaxus.net (hos109.unaxus.net [195.191.240.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 12 Sep 2019 09:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=heigl.org; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc: References:To:Subject:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Lr/RgPDjNnxxjB72euoygqaf+/6GwPCY31T0y4Y/X7Q=; b=WjA0p5gugMMRYoHTJ40N4vkFOU CYUkpzV4owH5AiModxgY2R8c87OxWyHnBBKofJbY0+7InFQ6QkayO94zymG8ESg0EqlyIUUtigSAN PDPpNRt3piJF5TKWS04UnRgjFWYVS0OxT1X9njXLAjBvPehHQ3273nHHCDyvkoQmggvqUtOP9rbA1 r6UVpkCXicb0QjS6E3MQ4WAiIedQdmhJ21yxsrYJipC2HpJa0YW95sVkRWJ94QmpeVcnBBRibrhg0 XHwdV7GMepiO8uXhnE+l4I4ycSwS0OK4dFyjqOZOKUzIYlD7/glBtgfMTNViJeLrrp2h5eHBW/c5Y W2YHdR6g==; Received: from [46.114.2.191] (port=35809 helo=[192.168.43.93]) by hos109.unaxus.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1i8S81-004XQC-MY; Thu, 12 Sep 2019 18:39:30 +0200 To: zeev@php.net References: <076701d56978$86020910$92061b30$@php.net> Cc: internals@lists.php.net Openpgp: preference=signencrypt Autocrypt: addr=andreas@heigl.org; keydata= xsFNBFzEA7MBEACpvo0AbmZG6lUGMvDUebQcYVjOPrdqtnlb2WoZH9FrJyHyenzejO29VCju ekdhu44sUNgEHXxExUekguLDGZOzC9926g2rGDWO3MU1oqRlKURnOWsp/i0d9WM07ihj/lL6 smT9YLeagtPCJporUiFW8JyIusBWWhlL8hp8ZDvEfmvi06xDXML3wXzH/KWmoew3LgdwCZPk QSIWemUDPZKcUL8eeVkhYIJA9VKQnGSx36p5T7Ch/l+iqiPlyY1GUNItX9AQjpr07V0kIjyK +yHn6Aw1uy1xWrLn7ATDX8YuMvaz72+c/P2zQReMWoZNfggd2FHOPRUHvHcC9C91PuzJh8e9 hvtU/szDrPvvCVpg5aRymN/YPFJBSEqZfDelhD+8A1TJNPqSyzc21Qdd61636ynryawIW+Hx FT/UN1eA7V5/fdjeRyNUJd7B99Vo5A/lI25bIpg6cPLOLpVPFHEpNlGPQ8pcMRwnjG9GR74P TfH7Dy8Ksq8lpygPljJInZbz0870cHlM5XSdIPTXWQFfJi0e2kfaLCEni/Vih+eL0e5F7X3R taXY0HRFYHX8dY7ojf3sZJjdPVm3AQXY1yNkjnRxyJ/4gIwdFwYplU6lRBL92j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ljLu CWjkJTjKNDT8UWTr7XwJHQ2/ouI3fmI77iZCZbq9aesobv9NnBO/waAzjYAEx2ahZmM7m1rQ lPS636tUZ1QVZx/4SzNiMTBsgWLDQ0VtxcEmYe54+r8Y4o0vSrMcDYgBczZe/ASpSJB4AI1l Q3o3s5p3AeYsYPBtBsysSAbd0uZ65EDc9xwSRLiMJj+x8jGy2xtu Message-ID: <467be4a0-dd8b-29d2-0b09-a3efd7fad56a@heigl.org> Date: Thu, 12 Sep 2019 18:39:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8uAl2Xrp4kMomE2jVdsUOONui4LTaF95J" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hos109.unaxus.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - heigl.org X-Get-Message-Sender-Via: hos109.unaxus.net: authenticated_id: a.heigl@heigl.org X-Authenticated-Sender: hos109.unaxus.net: a.heigl@heigl.org X-Envelope-From: Subject: Re: [PHP-DEV] Changing fundamental language behaviors From: andreas@heigl.org (Andreas Heigl) --8uAl2Xrp4kMomE2jVdsUOONui4LTaF95J Content-Type: multipart/mixed; boundary="KBQ22qBJZUetMbeu4mtLToJkiQ2Gns1BF"; protected-headers="v1" From: Andreas Heigl To: zeev@php.net Cc: internals@lists.php.net Message-ID: <467be4a0-dd8b-29d2-0b09-a3efd7fad56a@heigl.org> Subject: Re: [PHP-DEV] Changing fundamental language behaviors References: <076701d56978$86020910$92061b30$@php.net> In-Reply-To: --KBQ22qBJZUetMbeu4mtLToJkiQ2Gns1BF Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hey Zeev. I'm not that deep into @internals and might not get the subtle subtext. English is not my native tongue so I might phrase things in a way that doesn't transport the whole meaning of my thoughts. But your Mail really left me curious: On Thu, 12 Sep 2019 at 10:44, Zeev Suraski wrote: > I was really really hoping that we will avert having to dive into this = and > instead go for the alternative solution that was proposed of changing > default php.ini error levels. But since the RFC went on to a vote - we= > need > to make something clear. > > > > The RFC process was never, ever meant to handle fundamental changes to = the > language. It was meant to deal predominantly with additions to the > language, as can be inferred from numerous parts in the phrasing. As I= > mentioned in the past - it wasn't even intended to deal with simpler > deprecations, but it appears that the cat is out of the bag on this one= =2E > However, the fact the cat is out, doesn't mean we'll let a tiger waltz = out > of the same bag. Using the RFC to deprecate fundamental behaviors of t= he > language - such as how the language deals with undefined variables - is= > simply off the table. Given the fact that you have the authority to say so, what actually *is* the process then to make "fundamental changes to the language"? > > > > You may be wondering, in that case, what processes do we have to deal w= ith > such changes then? The answer is simple. We don't. We don't have to = have > them either - the fundamental language behaviors are here to stay. But we still need processes to define which are the "fundamental language behaviours". And as change is the only constant in software-development, these "fundamental language behaviours" might, can and probably should be changeable. I'm not saying they need to change, but it has to be possible to change them. Otherwise we would still program business-logic in C as that was Rasmus' fundamental idea IIRC (Correct me if I'm wrong) > > Deprecating the ability to rely on the expected default value of > uninitialized variables falls squarely in that category. > > > > Reclassifying a notice to a warning is a possibility - people's code wi= ll > still run, and they'll be able to continue using these behaviors going > forward as well if they want to (perhaps with minor tweaks to error > reporting levels). Turning a notice to an error isn't reclassifying an= > error level. It's deprecating a behavior - and we're not talking about= > some > esoteric extension, but a documented, well-defined, fundamental behavio= r of > the language for over two decades. The fact many of you think it's > horrible > does not change that. Deprecating such fundamentals is simply outside = of > the mandate of internals@, regardless of whatever majority appears to > exist > in favor of it at a given time. > > > > Similarly - adding typed variables - is certainly a future option. > Changing > PHP to require typed variables (without opting in) - is well outside of= the > internals@ mandate. So tell us, what is *insight* the @internals mandate. And who has the mandate to change the things @internals does not have the mandate to. =46rom what i see you tell us (@internals) "You're not allowed to do so, but I will not tell you who *is* allowed." So for me that raises two main questions: 1. Who then has the mandate to do so? 2. By what authority are you making this statement? I'm looking forward to your answers. Cheers Andreas > > > > For areas like that - our options are either doing nothing, or providin= g > opt-in mechanisms to cater to stricter-loving audiences. I'm all for t= he > 2nd option, but there is no 3rd. > > > > Zeev --=20 ,,, (o o) +---------------------------------------------------------ooO-(_)-Ooo-+ | Andreas Heigl | | mailto:andreas@heigl.org N 50=C2=B022'59.5" E 08=C2=B0= 23'58" | | http://andreas.heigl.org http://hei.gl/wiFKy7 | +---------------------------------------------------------------------+ | http://hei.gl/root-ca | +---------------------------------------------------------------------+ --KBQ22qBJZUetMbeu4mtLToJkiQ2Gns1BF-- --8uAl2Xrp4kMomE2jVdsUOONui4LTaF95J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOHo7et0VdZk8RJK34Ff+SCK3tkUFAl16dLkACgkQ4Ff+SCK3 tkXRJhAAoLpLWcgNsC5qpgMjswfkhYcKc+lZFHB4uCI+wYRIl0JK/DTn7rPJ1eCD sa/WClyqTo2cQuKoUeXnTD78nIOCJrMa+pac0c/UM+3oaB6+NKi4tV4mzpOXsQtu HMyf3KV/rr7da+5KwGiPRjgYbSZR9yAIa8C5rjNi90vEQ/yx8WQBGzO8BV/Mbsts IzrcEC9kSmi1u1I6Y2jBsMSe7xhFoaNN67lte+rRYZI0UIqaw+lLEJbv33caZ4m+ bv/GYMS8QRhm7weRMV1iluU8SKWVBKZBDTgtqbI8jvxboYdnOavtJGOSzCSKUzrw 1XEg7nmx/FWpm8MxNPzulgpK/XGtUpg/mvR4GGJZVOmvbOI3SK6jeLDedAAKhfUw dGJiFSnd9mnu1KGxJiA3zRUj4YX4Uu4EMVUBuSXQ8TZGXvX0Ki6tXlwRpX508dRI tj1udC0j3MF5rzsiADI67LzoQ1if6TuHi8Uw/4+k8pNgchLKGttNV2cmP+p7FjNf AamiSBGDv4xlZHM8HxKx66FsfZF+qapXp+v5dGBdJtths/uVwfNu4n4reyni8GiR 8LBerxCe5FSoI8x+T2uSerkKZMGDprdncvg9+J/xKjyT2nZixeyZrKylDfyzN2Ze yNmfNJlVsTJjqwMO2Vl1FFakU8EkmF9OA2+i+/N9vQvxaunL8hQ= =DPgq -----END PGP SIGNATURE----- --8uAl2Xrp4kMomE2jVdsUOONui4LTaF95J--