Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117170 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26506 invoked from network); 28 Feb 2022 20:50:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Feb 2022 20:50:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E5DC81804C3 for ; Mon, 28 Feb 2022 14:11:40 -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.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS1836 195.49.0.0/17 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) 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 ; Mon, 28 Feb 2022 14:11:40 -0800 (PST) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2ea4:cf00:49c8:f92b:4796:2f0c]) (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 3AD0D15166A7 for ; Mon, 28 Feb 2022 23:11:37 +0100 (CET) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Date: Mon, 28 Feb 2022 23:11:36 +0100 References: <983552d8-11f1-b5bc-fb82-148347982fda@gmx.de> <5494eaa7-2fa6-8364-9683-a2c8c9789d81@gmail.com> <69642616-72b7-44fe-97a7-27ae03bc8fce@www.fastmail.com> <7fbed755-42e2-d023-285f-39863a97f297@gmx.de> To: php internals In-Reply-To: <7fbed755-42e2-d023-285f-39863a97f297@gmx.de> Message-ID: <3665C848-B4C3-4528-AEFA-02C868748AA8@cschneid.com> X-Mailer: Apple Mail (2.3693.60.0.1.1) Subject: Re: [PHP-DEV] Allowing NULL for some internal functions From: cschneid@cschneid.com (Christian Schneider) Am 28.02.2022 um 22:05 schrieb Christoph M. Becker : > On 28.02.2022 at 21:51, Craig Francis wrote: >=20 >> And after all of this, no-one has come up with a way to find or = address >> this problem, e.g. >>=20 >> > $nullable =3D ($_GET['a'] ?? NULL); >> echo htmlentities($nullable); >> ?> >=20 > function my_htmlentities(string|null $value) { > return htmlentities($value ?? ""); > } >=20 > $nullable =3D ($_GET['a'] ?? NULL); > echo my_htmlentities($nullable); > ?> >=20 > The BC break doesn't appear to be that serious after all. I'm not sure I get your point here: If you provide a user-land = implementation of the previous behavior under a different name then the = BC break cannot be serious? - Chris