Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117123 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67949 invoked from network); 23 Feb 2022 14:10:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Feb 2022 14:10:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CB87918053B for ; Wed, 23 Feb 2022 07:30:08 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 for ; Wed, 23 Feb 2022 07:30:08 -0800 (PST) Received: by mail-ej1-f47.google.com with SMTP id bg10so53226573ejb.4 for ; Wed, 23 Feb 2022 07:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1Pl6yB2QgpL8XUX8WDmal9zrC95C2ocrvZllArOVbKw=; b=ZaRT8h78mw5bs080ShTNGpKQMzFjQJSlbnXpD9Z00xwTmJGyVUZoqFhigSgIctFu1U pbTl/Kd6sJCmR3iAYJS3mmZ1xBx27JcgVGGUeEer2l6+Ad80R+YKUm+sY13cL5+uyS10 uiifTPGWStxWyGDnUoJskv+eQD+hERDI1qif8aq26nUR/DLvPM5Gfx94zJG06IvdlFGD JCv6DBdhrUwD1AMYDazGNlDNC6x0FThWYgcN7OWoAvGNdkfuTFiUL40JicFOa+I+6BJu J2YyomgnBDXuFSrcfFPW+dsfijHuiwpXwdmun7CJj2JsL7CMHHJHuxCP0/pY9MEj8YuE zIcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1Pl6yB2QgpL8XUX8WDmal9zrC95C2ocrvZllArOVbKw=; b=xJYdFUf7Bb+mh4if0TOWcxLocG5srrq8c4wPFzotL/yZgCtcGCTtYUPVhgs0nIaANX btRB6cpVbnRLflr1WmhSW4OZuXQSIEl4FbEH3cI85MsTDbTGXVstbg8DZlt0Z1/kVxWm /pBNySc9BkDRspg2qpF/YDLdq4DQGsnYpOyrDsiBhEEcj1UECRom9aXIs2ZmX25/42Tv g9tX4N7C0jxU76gR2gyq5UJ3riWwDsOI8Dko3iSrvlGQTyi0P+EYLXpA1v0pNCsqkMRO zG/spdfrk4Y27ygZZVKTyioVRN/0pxdKr89LCrYwjKvnm7RhzUVhwhCnoGqSGdw0LEwK gG+A== X-Gm-Message-State: AOAM530/kd8SbwgObHMFzv/dAI2UekF7ylO9Fxd2Mo80hhW7e3b9sUW5 8SLi46Bk5FBAtPxeS47siCZmUvrO110PanPcOGM= X-Google-Smtp-Source: ABdhPJzSXXLL1P/EWbH9uv0j1A+6iQMXyM21VeJALw1+dYJukZzDQf9nBYE32jwJRzAT0wx51d0Arj0pveuUg2+ZzrA= X-Received: by 2002:a17:906:a85:b0:6d0:827a:89d0 with SMTP id y5-20020a1709060a8500b006d0827a89d0mr229186ejf.230.1645630206774; Wed, 23 Feb 2022 07:30:06 -0800 (PST) MIME-Version: 1.0 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: Date: Wed, 23 Feb 2022 16:29:55 +0100 Message-ID: To: Marco Pivetta Cc: Mark Randall , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000e813f705d8b12368" Subject: Re: [PHP-DEV] [RFC] Undefined Variable Error Promotion From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000e813f705d8b12368 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 all >> 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, since 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 here. 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 new deprecations added to PHP 8.1, the ecosystem realized that the tooling needed to improve - and it did (phpunit, Laravel, etc.). We can and should add new runtime deprecations when planning a BC break. Please consider adding this deprecation Mark (and others.) Nicolas > --000000000000e813f705d8b12368--