Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117126 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 77843 invoked from network); 23 Feb 2022 16:54:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Feb 2022 16:54:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D60BF18053C for ; Wed, 23 Feb 2022 10:14:39 -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-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (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 10:14:39 -0800 (PST) Received: by mail-oi1-f173.google.com with SMTP id j24so17078401oii.11 for ; Wed, 23 Feb 2022 10:14:39 -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=JDbYDsQqLjYxd2ua4dOKPgJTUfbzCYX7GHaphJjvir0=; b=o9QN4T7CmrY5L1HKqQMlPTEZMEWOGV5OddPLhYPU8fynSvGY7QTBg/GUJQHOPqb/9R eyqyGujiSvZE/bIYOCogEpomfvaKlE2Nhbf2grXZKVkvYtIG83RAPqI+5dXi6Mh3kHzt e8mQVH3qrPAOupOMvaTRaIBug4tJ1MqhFDX/fPrWp403tJA9NvF1dwSRE9nD5NmuzSD4 grs+q2E662gqxwAaYdqjHgcUm4i3tQEFBzBVSkDAJLaiuweVoHE2HOYD57wVVEqGgQ00 VmJa7EP9quYZ8fz6X6bsUSB7Pw9B4OzK8xmDUmOv368u+W9+GpXoKZGCX7b6OJf7WJ3n 4GeA== 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=JDbYDsQqLjYxd2ua4dOKPgJTUfbzCYX7GHaphJjvir0=; b=eB/nnJOU8cWyAPEYI+6gXCdOrnqEPjEz6l3SMpyhQWoKUfft0qsg6n+Atp8z97xCCc UuNdi/3y/j4inyyND5SqVCRrvroL5NxbbfEbz2UDJZ81Abc3tbj3+fjUtmVtxY6cp1rb RgG213Y7tIu4vZ/bPtt49Xq8JzxdHZqibbvMQkKi8sNW5SM3MQvXNNxRKP5Dd6Jle4Gy rugXfJLPZD75ApR6IL+dY77UZPrVQYJNr44prby1HfLenxkrC+8Y8hts2N3ONgLeRqE0 vwOnqEgt4xy1Y/9e3Z1YVeAUz5lj7v/K/exyFPAX5R5Vq6Wmw06I8dicuzH9kgIw7vdb Y/8Q== X-Gm-Message-State: AOAM5326C/PAKddjgSx3Ytl9Z5MGANlXYh60MuOWoRtHyTCU6gZfIwvY lKvFRl1HjB0L5gPYWUsMkFZ/8TkYFEarINYjXEM= X-Google-Smtp-Source: ABdhPJzuu9iVYOunMz1lFqIRGDVg05YYFqj1kFyu1EFYd0QUFIfyXNnix7luRR5B+iiFtQzc8t+1e5jXhOxui84bV+g= X-Received: by 2002:a05:6808:f13:b0:2d4:f8c4:8b99 with SMTP id m19-20020a0568080f1300b002d4f8c48b99mr525569oiw.278.1645640078558; Wed, 23 Feb 2022 10:14:38 -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> <0ce34a07-3ad7-7158-d914-c18f3720ff9d@gmx.de> In-Reply-To: Date: Wed, 23 Feb 2022 19:14:26 +0100 Message-ID: To: Nicolas Grekas Cc: "Christoph M. Becker" , PHP Internals List Content-Type: multipart/alternative; boundary="0000000000004f87be05d8b3700d" Subject: Re: [PHP-DEV] [RFC] Undefined Variable Error Promotion From: ocramius@gmail.com (Marco Pivetta) --0000000000004f87be05d8b3700d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yeah, please don't: yet another side effect, deep in some `vendor` cruft. Just stop it, please: I almost have PTSD from 8.1. On Wed, 23 Feb 2022, 19:02 Nicolas Grekas, wrote: > Le mer. 23 f=C3=A9vr. 2022 =C3=A0 17:59, Christoph M. Becker a > =C3=A9crit : > > > 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 befor= e > > 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 th= at > > > 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 ve= ry > > > small. This means that static analysers are not a pragmatic solution > > here. > > > > 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. Wit= h > > new > > > deprecations added to PHP 8.1, the ecosystem realized that the toolin= g > > > 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.) > > > > Do you mean E_DEPRECATED in addition to E_WARNING, or instead? I > > wouldn't be happy either way. > > > > I mean in addition yes, deprecation before warning. > > I considered grouping them as E_DEPRECATED|E_WARNING but that'd break man= y > userland error handlers I fear. > --0000000000004f87be05d8b3700d--