Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117167 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15865 invoked from network); 28 Feb 2022 18:20:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Feb 2022 18:20:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CDEB01804D9 for ; Mon, 28 Feb 2022 11:41:38 -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.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 autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 11:41:38 -0800 (PST) Received: by mail-lf1-f43.google.com with SMTP id bu29so23315031lfb.0 for ; Mon, 28 Feb 2022 11:41:38 -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 :cc; bh=Yy7m2Vnke60UeQlKmfYLPqjJEuBdOBPYUPL5tbhk9/g=; b=b2KPERG+422El+5sd9wuNf4Grc2SDdnOma+Ia8JaXItttvI/NVkJ3vGEFjC7MLn4GX wjG9uiKjhEUvxR7yU6W1Wy04qdKxaLmoYc3tdwrQl9PKds43WVNlSE1UK7kRaAMPtjuU XNa3pqHHMx70rSXTzM5s+vY+HHWz/pcHobyu8= 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:cc; bh=Yy7m2Vnke60UeQlKmfYLPqjJEuBdOBPYUPL5tbhk9/g=; b=2Z9OYlmB8aeBRWUZkLOQ8HkZH5iZ3LMDuiIGmKL6GxAZDws1ppt6FyGB4E9Us6h8dh 96Jiio7FuFhNgtc8TmL+vIy3IFzpsvxcJyBmniqBSxzk+Ggckb/e11/W/nEUtiyQ3YE5 JEPfxCERzmaeffBFgIdSiJLBDKjcL0W1RyEcD/C0D1Tu2Sl+q04kCPMhaBHzVORb5CXQ UG2D9DDJ+u61vzz6kjerjKY94hA8ISEuKOmkCVN9uMqkukYCvohthSnMNBvSRcCUSZqU E8v3+o1arxFqgDNEamqDdwPR8q0J1cgpCKwk55yAlKghVgTMuFg1DlSByUeUe7/FySbf cMMA== X-Gm-Message-State: AOAM5336yCCGW8x4VhJc8s0ZDZBX6pJA912uhyMmbxWehUh/ODuf4rNo 7PUiIenI6Nsr0M9DIIXA5bb31Te5dCK1S2M/jIz3Gw== X-Google-Smtp-Source: ABdhPJyTkog//5L9Seu/Els3M9KFE/j1kwbWOk4N2zlrzyOb+509BMT2Pku4ZMUGCjU5Oo9k1pAuOHqmOTtR9Iv73r4= X-Received: by 2002:a19:645c:0:b0:443:153b:9bee with SMTP id b28-20020a19645c000000b00443153b9beemr14168840lfj.620.1646077296895; Mon, 28 Feb 2022 11:41:36 -0800 (PST) MIME-Version: 1.0 References: <983552d8-11f1-b5bc-fb82-148347982fda@gmx.de> <5494eaa7-2fa6-8364-9683-a2c8c9789d81@gmail.com> In-Reply-To: <5494eaa7-2fa6-8364-9683-a2c8c9789d81@gmail.com> Date: Mon, 28 Feb 2022 19:41:25 +0000 Message-ID: To: Dik Takken Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000008dfdbb05d9193c83" Subject: Re: [PHP-DEV] Allowing NULL for some internal functions From: craig@craigfrancis.co.uk (Craig Francis) --0000000000008dfdbb05d9193c83 Content-Type: text/plain; charset="UTF-8" On Mon, 28 Feb 2022 at 16:41, Dik Takken wrote: > In my view, consistency between internal and userland functions brings a > lot of value, and not only for the language itself. Thanks Dik, I agree that consistency is very important, and I do not want to stop that... I just recognise that many scripts use NULL coercion a lot, as they do with other variable types (when not using `strict_types=1`), and that's being broken just for NULL (which creates a form of inconsistency vs int/float/string/bool types). I started with preferring 2, but I think 1 is the best route to keep the spirit of the original RFC, while not breaking backwards compatibility. Craig --0000000000008dfdbb05d9193c83--