Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117773 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11586 invoked from network); 23 May 2022 17:03:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 May 2022 17:03:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CCDB81804C4 for ; Mon, 23 May 2022 11:45:51 -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_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 23 May 2022 11:45:51 -0700 (PDT) Received: by mail-wm1-f42.google.com with SMTP id r6-20020a1c2b06000000b00396fee5ebc9so104237wmr.1 for ; Mon, 23 May 2022 11:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=zHKF7cWdmjIesN31uNBB6z3C6+7m2uxci+Z+Sst32MI=; b=D1iWrJoG/68NB6HXTUwFbdeig0wRvT7f4JzbD1V+aelHV5rv18tPq1XhNksciWjeIc t7yhksZboiCUKi6OWJFKXXHZa+6UtC9QRtCaKOYRlA8TbTHYfVAA5p7ibpsyHtnwBEu5 nyFEfzwZgbWmSyV4UsY1pzBz8XY+UKutuXFy8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=zHKF7cWdmjIesN31uNBB6z3C6+7m2uxci+Z+Sst32MI=; b=VOsDvYy+lnfUSUuBtbXSJpkGbJD+dD5xKCrRGBUle0Ui8G+IKgTyJmv4tuhMwKzERC B0nzE30Q3f9ysbJPi+5JxmTuc3KJrQTHBGgAtKD6fcGdEti1v8JOp5oMseiDM2K7/Y7+ FT8/DV0GuAZLajCLCi25Cz/MVD+aC6HXQKXFHckC3QKn19/lpzuyOYvijNrKDVniXWDN Xv3oLNb3S5jStjlJHNqlGfqTMyFHlQsEWOYFAbDKfSD+Sk4s4c11wnEOqGfITpHTiu+R sVXyFcCpJKHE5sMCpM+PgQFWefoxFXd/Qm7+1cnXIR/S+m4vHmoNVPnyL3PqpmRECa60 oPIA== X-Gm-Message-State: AOAM532rpWGVRMmjttnCF5oCvu+EIaNuQO7abEQ1F+jYChU4Bg+rqm+E qEzauwkrDLNoV0FCDcA0KmJbZ3ULsqzaEA== X-Google-Smtp-Source: ABdhPJyQB+nifTvwJKefdvmVQG6Jp/1Kpj1/Vz93Vu23BbdrY15/7hHynghLzTjBdCvsGjwi1gySMQ== X-Received: by 2002:a1c:7912:0:b0:397:41e9:872d with SMTP id l18-20020a1c7912000000b0039741e9872dmr355369wme.184.1653331550217; Mon, 23 May 2022 11:45:50 -0700 (PDT) Received: from smtpclient.apple ([94.173.138.98]) by smtp.gmail.com with ESMTPSA id o21-20020adfa115000000b0020c5253d8bdsm13047795wro.9.2022.05.23.11.45.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 May 2022 11:45:49 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_68F1EAE2-3E66-431F-8979-407F08EA4029" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Date: Mon, 23 May 2022 19:45:48 +0100 References: To: PHP internals In-Reply-To: Message-ID: <1755E8B5-229B-47B2-BBAF-B5E014F5473D@craigfrancis.co.uk> X-Mailer: Apple Mail (2.3696.80.82.1.1) Subject: Re: NULL Coercion Consistency From: craig@craigfrancis.co.uk (Craig Francis) --Apple-Mail=_68F1EAE2-3E66-431F-8979-407F08EA4029 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 8 Apr 2022, at 18:34, Craig Francis wrote: > I've written a new draft RFC to address the NULL coercion problems: > https://wiki.php.net/rfc/null_coercion_consistency = For those against my RFC, can you take a quick look at this patch for = Laravel: = https://github.com/laravel/framework/pull/36262/files#diff-15b0a3e2eb2d683= 222d19dfacc04c616a3db4e3d3b3517e96e196ccbf838f59eR118 = If passing NULL to `htmlspecialchars()` represents a problem, as used in = templates like `

Hi {{ $name }}

`, presumably this patch should be = reverted? Craig --Apple-Mail=_68F1EAE2-3E66-431F-8979-407F08EA4029--