Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117501 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75861 invoked from network); 8 Apr 2022 16:04:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Apr 2022 16:04:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 155B41804E3 for ; Fri, 8 Apr 2022 10:35:06 -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.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,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-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 ; Fri, 8 Apr 2022 10:35:05 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id p15so16248954lfk.8 for ; Fri, 08 Apr 2022 10:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:from:date:message-id:subject:to; bh=N2LUio/Z3BrWNu3JxkFIR165PYKGOQeh2W5Vhz3lqW0=; b=RXz33J0ULs+LQjPw25J0zANfwkrvziA/pUGP0w8ckYvvkg9dkq5xBEIsbKVcOk7H/O JFytzsPSrIJNVVN/0h+NAJyTcsinruoFN7GVfoaC96yQhlIlsndJoIhCyIn7U3D2uu0d T4oWSimFIlp2liNh2IWzm2wM0/bXAjKAkOx8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N2LUio/Z3BrWNu3JxkFIR165PYKGOQeh2W5Vhz3lqW0=; b=uHL/4BaPrJg/Dw6GrcAYPBbZGJOn8qyKR4EL3ijg8Ih9Hs+PhnjhTyF1KQL/X+33XD c0c33ES5aRiAQ17+AaN0vhyfk+2bhFarxfXbeKrdgzUwUw2r2fymATZzCEDp5jKKD//W QG0Gv0Wh0FETj8exi3hjU0hKebe2s+kC42adqje6YkQpXarDW/WJhlIXy6QmiAM0MFeh y9wZLBRg1lvJIjLgCA1qxCbn48SOgyHw9mrQCAC8z/d93rxkoLgahxucoPYsdpahNnVf c0TLR54wCbYza3bje8WLhYw+7eCALaAywKDCrwxvVFi7eG6IZcCjGJB/n/327udrbDyN eHGA== X-Gm-Message-State: AOAM53121Q4Xt0QCG133KtXDo48+syqfmJsimedS57GrDrTo3qzKN7tF 4EkDwkJ+z40C6jE7zSVvjl2ATwgSyARxIpD7Toy17ayo9xOsvw== X-Google-Smtp-Source: ABdhPJxiv9ARxGm58z92bAsmHquIFbp0ZthIh8f9UzTe4R/TkQYNcNxtfbuzJd0+BXS04uLCoa/SLEIzGGeIJLeTP/Y= X-Received: by 2002:a05:6512:ac4:b0:46b:88a0:e462 with SMTP id n4-20020a0565120ac400b0046b88a0e462mr2066626lfu.472.1649439303788; Fri, 08 Apr 2022 10:35:03 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 8 Apr 2022 18:34:52 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000c7ff8f05dc280319" Subject: NULL Coercion Consistency From: craig@craigfrancis.co.uk (Craig Francis) --000000000000c7ff8f05dc280319 Content-Type: text/plain; charset="UTF-8" Hi, I've written a new draft RFC to address the NULL coercion problems: https://wiki.php.net/rfc/null_coercion_consistency This is due to the result of the Allow NULL quiz: https://quiz.craigfrancis.co.uk/ 14 votes for Fatal Type Errors irrespective of `strict_types=1`; 13 votes for NULL coercion when not using `strict_types=1`; 8 votes to update some parameters to allow NULL; I appreciate some want to force strict type checking on everyone, but I want to make sure we have this properly documented, with names, and explanations. Breaking changes should be justified - if they aren't, they only make upgrading difficult and frustrating (bad for security). Craig --000000000000c7ff8f05dc280319--