Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117080 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35489 invoked from network); 20 Feb 2022 19:19:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Feb 2022 19:19:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 42F9E180381 for ; Sun, 20 Feb 2022 12:38:35 -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=0.6 required=5.0 tests=BAYES_50,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 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-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 ; Sun, 20 Feb 2022 12:38:34 -0800 (PST) Received: by mail-lj1-f172.google.com with SMTP id f11so4070433ljq.11 for ; Sun, 20 Feb 2022 12:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=eHbqV1KUovdEiuraPOShinBMMaM5y+aDjEWrLlcCAF8=; b=P16s1UXQR8VoSr4BfgJKHMngXe/KkcPSDqd+zyJAIrb8bZBa4qjyoAIxq0KbwPeTZx +37k2gSiJPQqwOXHEZayTHCDoXlNdX6cy2/VzjlEb+B6gtbouhgTAErfDhDTZSY6ijZf XycY7lYAb9AYTcn27YU1Zwx4WvMs8KfLxR7cM= 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; bh=eHbqV1KUovdEiuraPOShinBMMaM5y+aDjEWrLlcCAF8=; b=7+wI3OPq9eDJMR8+WXVMrjMQMozD8TLtSZgGZBKXw+KnLL/yDILxQGS/lCiBCoVCax mKNv6Z8mF4hFSIt7PtRye5Czg+NuYQui1UiYCxKGv6/k98F2nVCWq3ZORmC62aDGv7M2 /lVc0KHhcgRj+j4qZtrpaQGDiW0aU3T2Ao17c0E+pjV2Sba7CsNUEZ1wPbeQQtUKseFd aDIsT3wAiuaEqjzyhOMtM4Sl7e9XHcxyPnZoiZ7VxsnxSNiV06NuHyxzwL3/AIVsEfRa /ifbzpyNZ3vDhu7pnG9O149cdmaMOgbrYWH9SYpJ1/+wUqbEg4Ctez5sD4SqrSgRSuDm Dr8A== X-Gm-Message-State: AOAM531PGu4WRPgrXgNfv35INj9u3OBoZB0E/7oJU0VnZbKNUGFb8cbn MROS7uPN9mLcgUTAvd5XxCp4MMVEcWrzoBCRvDq0oTlWJ9STUmq3 X-Google-Smtp-Source: ABdhPJySmbOE/gP5kFlX8+7hUxcUpn/LhTnVz3wtbUH0dYoGqEh826l7uN7igW8zY9TmRmlyl0RL/YfvWtcjdc0jHuE= X-Received: by 2002:a2e:9844:0:b0:244:c274:10db with SMTP id e4-20020a2e9844000000b00244c27410dbmr12361110ljj.120.1645389512998; Sun, 20 Feb 2022 12:38:32 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 20 Feb 2022 20:38:17 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000007097ff05d8791939" Subject: Re: [PHP-DEV] Allowing NULL for some internal functions From: craig@craigfrancis.co.uk (Craig Francis) --0000000000007097ff05d8791939 Content-Type: text/plain; charset="UTF-8" On Sat, 1 Jan 2022 at 23:17, Craig Francis wrote: > Draft RFC: > https://wiki.php.net/rfc/allow_null > I've been over-complicating this... why should NULL be treated so differently? It just struck me, this whole thing is about type coercion when not using `strict_types=1`; and the 8.1 change has introduced an inconstancy by deprecating the coercion of NULL, a frequently used value. Craig --0000000000007097ff05d8791939--