Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117338 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88181 invoked from network); 15 Mar 2022 17:43:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Mar 2022 17:43:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 46683180505 for ; Tue, 15 Mar 2022 12:08:00 -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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, NICE_REPLY_A,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-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 12:07:56 -0700 (PDT) Received: by mail-wr1-f41.google.com with SMTP id p9so30446581wra.12 for ; Tue, 15 Mar 2022 12:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=q9dKIhprE+6fJYj6Qsb2JTjIXNyTF688/JevWLUuZQg=; b=HNyKGOoHPjOIfJPmJbhaan4xu0IcnrQzMor4RNXrsV7W2WFaVrlbFGBijJnmF2ctDm DmdjT7w1FZ5jMYpm1SJMVpHKF+suHh0jy1KHNSne05jhRLZ2yRVZ3FYm1Fu7AGuzwN3x 8GpTMuDDmXKCNu49o3TIbHqxo4eF9uHVqNsShsvP1a1UW9xCisVMyVJEYiVdp8rWSvNf 6x6g08j5O+nja0BWoNz50fTYgL9phiLlcC4KB7vyen0BJodcxjA2ZGK6xNv8JBUm97p/ seLltYmKY+PfmFu2NSNbh7FVqcAhSkhfalx9KcwSZyiYaPngmDA3AlOei9H/cjR7UxnS qmuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language; bh=q9dKIhprE+6fJYj6Qsb2JTjIXNyTF688/JevWLUuZQg=; b=6ijEi9ZbxQIGP20POF4UKv97WGJ1NkWPGmpELnC78Hh5N/QX+quipTOZcb5Pqyvy+b gV1XPKchpS/7asnts7gUZp/QCaLZjPDuQARUJAxQhQnQqRvy+NGIysyeHVxJsGxjBt9N aw5KqEato/QOuhhy7x1m+SowCSrPXeQsRIhQX0gpTBSV8wHUICn1VPuKn8mcaPr2N2M/ 9O6jEUaEKFZtt9rXvBbZ0I7psPAmwO80I/2umO/E0MMB2zsvYZp106jCQ6vYijLvyAXx k8ZweitUnkrgqsaSEp9ZJBo7SLjwET1rWi/GrfxLAPDvo0FyYZ+sWmqV+KrhJvj322/t r6XA== X-Gm-Message-State: AOAM530MBm2qSwNiuRVipFR75yLtV1KxzavBYMED/YhPvFLPwc+dSzki m9CzhWJVmohJ511gpFCr0Soj5bqCxNw= X-Google-Smtp-Source: ABdhPJxodeOvO5FHrpZglCxKJliv737cVacHi367dBUoi87yfS1dunsFqEcbJgzCn+SHDPGAJ+abFA== X-Received: by 2002:a5d:5689:0:b0:1f0:c78e:6690 with SMTP id f9-20020a5d5689000000b001f0c78e6690mr20876551wrv.616.1647371275417; Tue, 15 Mar 2022 12:07:55 -0700 (PDT) Received: from Miko-Mac.local (164.6.117.91.dynamic.reverse-mundo-r.com. [91.117.6.164]) by smtp.gmail.com with ESMTPSA id r12-20020a05600c2c4c00b003816932de9csm2863065wmg.24.2022.03.15.12.07.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Mar 2022 12:07:54 -0700 (PDT) Sender: Miguel Rosales To: internals@lists.php.net References: <4724184.31r3eYUQgx@come-prox15amd> <37421f61-4e2e-53d3-56d0-022a3c21ed2e@gmx.de> Message-ID: <4f8bad56-267a-9279-1e57-66fd10b8874f@gmail.com> Date: Tue, 15 Mar 2022 20:07:52 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:52.0) Gecko/20100101 PostboxApp/7.0.54 MIME-Version: 1.0 In-Reply-To: <37421f61-4e2e-53d3-56d0-022a3c21ed2e@gmx.de> Content-Type: multipart/alternative; boundary="------------D78288F0D73220823C92E03C" Content-Language: en-US Subject: Re: [PHP-DEV] [VOTE] Undefined Variable Error Promotion From: mrosalessueiro@gmail.com (Miguel Rosales) --------------D78288F0D73220823C92E03C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Christoph M. Becker wrote on 15/3/22 19:17: > On 15.03.2022 at 17:54, Côme Chilliet wrote: > >> Le lundi 14 mars 2022, 18:18:55 CET Mark Randall a écrit : >> >>> I have started the vote for promoting undefined variable access to throw >>> an Error exception. >>> >>> The vote will run for 2 weeks until March 28th 2022. >>> >>> https://wiki.php.net/rfc/undefined_variable_error_promotion >> This does not mention properties, are they concerned by the change? What about array keys? > The RFC states: > > | If the code does not currently emit a “Warning: Undefined variable > | $varname” then it is out of scope for this RFC. This RFC does NOT > | apply to array indexes. > > That explicitly excludes undefined array indexes, and apparently also > excludes undefined properties (which raise "Warning: Undefined property:") > AFAIU error promotion for undefined properties has already been covered by the Deprecate Dynamic Properties RFC , which will start throwing errors in 9.0. --------------D78288F0D73220823C92E03C--