Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117124 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72983 invoked from network); 23 Feb 2022 15:40:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Feb 2022 15:40:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3AD071804D9; Wed, 23 Feb 2022 08:59:44 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS; Wed, 23 Feb 2022 08:59:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645635581; bh=mfnij1jvvKyoFGzXrUvSdj+F5PfPxh52O1CvTMVmv1k=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=M9A8uVg8/KmapaaG4JJUjcbxhNwo8VkH83VFsm34FSKqXz1ac49RkfWEN+U9BWd9M b+xJiM/N3j4IXjdU4jNmIZeYFsJT+holYtnKfOg6UKcGQvyylUnBrnmeRISjLesO4I z15fCjFZJxX3jpyn+jMM8M/dB1POPKHrB4r1/4eo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([79.220.67.100]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N3bWr-1oMGli1iXz-010Ziu; Wed, 23 Feb 2022 17:59:41 +0100 Message-ID: <0ce34a07-3ad7-7158-d914-c18f3720ff9d@gmx.de> Date: Wed, 23 Feb 2022 17:59:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: de-DE To: Nicolas Grekas , Marco Pivetta Cc: Mark Randall , PHP Internals List References: <620eda0f.1c69fb81.d2cb1.0846SMTPIN_ADDED_MISSING@mx.google.com> <5efecaef-a024-3c61-e12e-ffc342956718@gmail.com> <6214c40e.1c69fb81.73261.05d3SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fC3zhCMoFWrGRaXA0r16afyRwdopHjplifZhPP0csQlQg52+vJY SYcR5mBZyhDxIX02+L8oPtvWYcZVpl4Gg7yQhzYO5NxzQ5njnbWZ34MMzvN4ar7mMp4DWMC E3jsYLFPTsKFzN+LpakuNDs/LsevDdY5N+5BgnyZK2y1b+h4jeEJGtF1nDY8wVCgfK3+M+a umJBHTir3LIpdLevxGZlw== X-UI-Out-Filterresults: notjunk:1;V03:K0:IyjsvaiT2EY=:8rv7UJSnviwvbLWWudNnRt Fg3X1klZxKXLCDxHXprdlBP5wIBeYXA8sZNcz559w5ENwUhJR8EptvK7OFcC1AJ4X9UZUeodN WgC2uZVqtwIJEJYLwOINMvUge5UM9OvWsh+berIlv8Xc97ZrvJdQfcgA0ZUUHRJAVY1F4Qpbq QV6+pwEIG/DqJ9yBivRX8phu/K3nSl+kJuAOuMpXRX48hP0vbqQ7SPu+pBFuk1G/bcNFRSywE FuuN7DKRhnNup5i6bGZOjfxMmGg9fXze1KgfFYHAfSa+7N+m8nWPGAw5LVd2cS6Za403KV4A9 W50WQjVG7jqBZxZ71a2Y5iS9Zw6HqHm4fnYSnL7br9UOd3XyZU89bQ2BuIk0Ct28Z5i55CxTk JaEY1TiaAsmn0gb2r+VLzBQCwxD9aOSB2+JZuY1G3dP/TBk59Cg1giIS0bUopjbeyS0pT4Myn vuNCO77SREdt+qvet/BZl+rv4BXQ/JhekEg8rWwx/Kn6WAiNQO8vcA0GVQWsjsnK38SpBK/V+ dkRk5gfqVj1D6ic6tl1qY8rc+5TZJO/lQEJpPZOkBEQvgMiKZdjaMx58n4U5KGljxKfyrm/5X reQj3T13ufn2uWXPxax13gtWS9rGnKWEtuO9isIbZfWjj8nd9PxIciePytTaVnVDPf3yjNS8K 4bBoop5VD9OY6+kU5m2koyzn1TjQTP73fxm5khzTfJPvyyT9hRK7+duG39e2h5K7yE4yqdnqZ WF0DxWS8B7yDb+APCHcBdCfOrG6HMpTkXF/DFkSD7pxa6cxoHNFkHzASonTPDcGVVKMDWX4Jy mkU5oPpGW0FE8wuqJ15vEPP7Xz9IJ0TfIGGdWJODZFfsCoNjGgSoiX6bKEpUHax4wH3nP67v3 cp0Z0jgnUSkPjLP3nt8fqyInkWf6DaBPJjRi/bSn6CcQeuDys2mG9KjQdXiQze9KgZGDW1KFs bWOAJRNhYeKjvlgeYbUQHTwEcVqzRByVMoq6Ni5pFHPIozj1SVO9a9MswMQEAyhDl/KSjfGWq XFhd0e9xLG9z0HvVoE6PVyNjrN5hIkb4DRPx6T1JBLM8x4dIVOt+UDdzLaKuIHCjdMnHW/Un7 P9PBOZo34Oxa34= Subject: Re: [PHP-DEV] [RFC] Undefined Variable Error Promotion From: cmbecker69@gmx.de ("Christoph M. Becker") On 23.02.2022 at 16:29, Nicolas Grekas wrote: > Le mar. 22 f=C3=A9vr. 2022 =C3=A0 14:56, Marco Pivetta a =C3=A9crit : > >> On Tue, Feb 22, 2022 at 2:53 PM Nicolas Grekas < >> nicolas.grekas+php@gmail.com> wrote: >> >>> But this makes me think: we should trigger a deprecation just before a= ll >>> corresponding warnings! >> >> Please, no more deprecation warnings, make it stop =F0=9F=98=A5 >> Yes, undefined variables are a problem, but I just spent 6 months in >> `vendor/` code for 8.0->8.1 stuff, and it doesn't bring anything but >> frustration: this stuff is statically introspectible, and even more >> side-effects are just more trouble. > > I'm not going to be affected by this RFC at all, and neither are you, si= nce > we use throwing error handlers. But ppl that do rely on code bases that > have undefined vars "by design" will be. I would bet that the number of = ppl > in that affected group and that also use a static analyser is very very > small. This means that static analysers are not a pragmatic solution her= e. That. > Ppl that don't use static analysers deserve a prior notice. There is a > dedicated reporting mechanism in place and we should use it IMHO. With n= ew > deprecations added to PHP 8.1, the ecosystem realized that the tooling > needed to improve - and it did (phpunit, Laravel, etc.). We can and shou= ld > add new runtime deprecations when planning a BC break. > > Please consider adding this deprecation Mark (and others.) Do you mean E_DEPRECATED in addition to E_WARNING, or instead? I wouldn't be happy either way. =2D- Christoph M. Becker