Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114596 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72154 invoked from network); 25 May 2021 17:01:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 May 2021 17:01:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9D84F1804CC for ; Tue, 25 May 2021 10:12:33 -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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from darkcity.gna.ch (darkcity.gna.ch [195.49.47.11]) (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, 25 May 2021 10:12:32 -0700 (PDT) Received: from smtpclient.apple (unknown [IPv6:2a02:1205:502d:fa80:3830:fb28:1778:b1b7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 32277150E927 for ; Tue, 25 May 2021 19:12:30 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Date: Tue, 25 May 2021 19:12:29 +0200 References: To: PHP internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3654.100.0.2.22) Subject: Re: [PHP-DEV] Disable autovivification on false From: cschneid@cschneid.com (Christian Schneider) Am 25.05.2021 um 18:23 schrieb Kamil Tekiela : > I'd like to start a discussion on the following RFC > https://wiki.php.net/rfc/autovivification_false > Particularly, I am looking for opinions on whether this behaviour = should be > left alone, should be disabled on false, or should be disabled on null = and > false, and left only for undefined variables. >=20 > Autovivification is very useful in PHP, especially with = multidimensional > arrays and loops. However, the question is should we allow it on false = and > null values going forward. I feel like a broken record, but I have to say it (again): Please add an E_WARNING step before changing something that used to be = silent to an error. For easier migration. Thanks, - Chris