Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117341 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7115 invoked from network); 15 Mar 2022 21:37:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Mar 2022 21:37:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 223041804D0 for ; Tue, 15 Mar 2022 16:02:41 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_40, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (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 ; Tue, 15 Mar 2022 16:02:40 -0700 (PDT) Received: by mail-vs1-f48.google.com with SMTP id y20so523178vsy.2 for ; Tue, 15 Mar 2022 16:02:40 -0700 (PDT) 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=+sgYZQG0HtW8+/GZJmWvIxcFV/jlSgHpTC1Tw/lHKGM=; b=SUEnfFAPWZm3ngDLPV4oh0dfXhQkaIv3AYk+7Chn9AxXu4Ug+0XA56iHJXvAIdxdsG YB4fH+d8xP6+Tx1m6bdBn3a7bFAakMNJ8b+GfiwjQD/8l8DuOThjvOR1xgDuB5eW5A2T HE6IiZT5O9yrrX35JkJlSxM8wlHk4eyV7h5TiQNtV9EfV8iBrZe+ZGh47QJ1Uw3qpBwa 70b0nRv5W7zRkigz7O7d/bQTa35zQxgGSqjvVmBARzrn2pm+sxXxuNJHYqTJorVL7y/y XONJqrIcWSjlXe4XdDMUZ7bUFQRu98hK0T3nUNBU8GXOhywy/v0nc0ieeJzX42aQnV/t rt0g== X-Gm-Message-State: AOAM530eOVexS8jKk7R+OQelmn6mkvnyVlrj6Tr29KPkMiJLUFxuAb1v M6ioFdWz6m1hH0M8eP4KQr3n77clC8ztOcXnVQ== X-Google-Smtp-Source: ABdhPJyqmAFaMKU5u5CpVyH1bfj4PegcN2l96S3F/XRnXHJsxFw3JbtJB9wf4chHOaQLvMAnemIhcLV3sxqceiiQtTI= X-Received: by 2002:a67:bd01:0:b0:322:7edc:389a with SMTP id y1-20020a67bd01000000b003227edc389amr12474926vsq.5.1647385359631; Tue, 15 Mar 2022 16:02:39 -0700 (PDT) MIME-Version: 1.0 References: <4724184.31r3eYUQgx@come-prox15amd> <37421f61-4e2e-53d3-56d0-022a3c21ed2e@gmx.de> <4f8bad56-267a-9279-1e57-66fd10b8874f@gmail.com> <6230f8bf.1c69fb81.b1e54.162dSMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <6230f8bf.1c69fb81.b1e54.162dSMTPIN_ADDED_MISSING@mx.google.com> Date: Wed, 16 Mar 2022 00:02:28 +0100 Message-ID: To: Mark Randall Cc: PHP Development Content-Type: multipart/alternative; boundary="0000000000002b4bca05da49cb0f" Subject: Re: [PHP-DEV] [VOTE] Undefined Variable Error Promotion From: patrickallaert@php.net (Patrick ALLAERT) --0000000000002b4bca05da49cb0f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Mark and the list, Le mar. 15 mars 2022 =C3=A0 21:36, Mark Randall a =C3= =A9crit : > Who knows, maybe PHP 9 can be the version that removes remove *all* > warnings from the zend engine. > This is not far from the reason why I voted "no". I am not against the fact this warning becomes an error per se. I am just not very fan of cherry-picking an individual kind of problem (read: notice/warning/error/...) and changing it without a more global frame. While it may not be a good practice. It's not that we cannot recover from that, it is more that we don't want to. This doesn't match really the notion of "error" which is not very much documented, apart from https://www.php.net/manual/en/errorfunc.constants.php: "E_ERROR: Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted." Currently E_WARNING is documented as: "Run-time warnings (non-fatal errors). Execution of the script is not halted." This describes how the core reacts, not when it is supposed to happen. This could potentially be extended to: "Run-time warnings (non-fatal errors) that are likely to denote bad programming practice (like the use of something undefined) that are usually solved with code changes. Execution of the script is not halted." But then this wouldn't be true anymore if this RFC passes as it would result in: Undefined variables: Error Undefined index: Warning Undefined property: Warning IMHO, this leads to something more inconsistent than what we have now. I know other RFCs could target the other aspects. But there is no way to vote "yes, provided that all other RFCs under the same umbrella would pass for the same version". This is probably a limitation of our current RFC process, but in order to maintain as much consistency as possible, I see no other option than voting "no" even though I am +1 on the principle. Kind regards, Patrick --0000000000002b4bca05da49cb0f--