Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117701 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13051 invoked from network); 9 May 2022 06:39:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 May 2022 06:39:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DA3F618037E for ; Mon, 9 May 2022 01:18:08 -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_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, 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-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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, 9 May 2022 01:18:08 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id v12so18248101wrv.10 for ; Mon, 09 May 2022 01:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=Hb6W3xzqLGdswu0ojqRejAY60FdWBVJJO3DM8tLI3XM=; b=TwD4le+gPH46qA2K56kIAnDW7DJZeLPQ3ZPaiFQDaWa64tO256LwQGYwyi254g6emx 2yHqd/vpnbmIUVL20y/c0bQrsfChjrYFUlWPnnDmcIqM+YGYsNEwy+e5i0I4pfvpUrop m6Z1zpxHegjuSi6TpCj56O9nt3qCIa/6aJJ8H1cGj/qDcF6suyHSpCIYPLz/riZd++WK amCmq6A06yRlNPNk8vySwCCqe3aMMo3TK5tpDPJ2TbP7ZiloW2GLBoMp7J5LZliJHwwU 27Ff6WObVDWi+60mdMYDaRFXT4oG1vnIpRlyR6c5Imij5QsHGYhsqGcFCVpeKCuA3D9x cGsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=Hb6W3xzqLGdswu0ojqRejAY60FdWBVJJO3DM8tLI3XM=; b=ERXoR+C9rehYpm/5Zq6tYOekzk7JuP9hqG7Ia0F0cdaEY1sqvKg1fjVDxsKW4T5S3K UX6F14DqS8JquR9duH+/dhA6k+ePa9PCW711HCrul5mOj1YwwpodrjQ69GBTOv/VRZKT n1pJ598V4yhildyfbEAwpd8zpc4aimBFrxNrClR21LPfZvMuDbnybjeDAAVotsmHXG+q XSjZZBLmhzTlN4Z1d2AMK3nCtaWm2xa8AZ9SmCRF4+KkQzLbrFHNfc1wkiXc3IoClGz0 y2oqetxItEUD6k7JAiiyu83FQwhk7DhHqKWts7fMZSBIliybL1Ofwj4k73M2lbvEi2fK bYZw== X-Gm-Message-State: AOAM530/PZEY4ayzg0Toik3pfyqmF0/aVsZRZdw8BSKPmOYfj3o+6mP8 LsVcTmkeI1noOUdoshIjqV1Sbsyurjk= X-Google-Smtp-Source: ABdhPJzibTzWX8qNSdK8Yz64JenSBnfwdyHJMVkvFcyqQ/Qvw9q6PZ5xEY4ZpXt5BL7ddgduOHwbjQ== X-Received: by 2002:adf:f0c6:0:b0:20a:d31b:6 with SMTP id x6-20020adff0c6000000b0020ad31b0006mr12933956wro.162.1652084287046; Mon, 09 May 2022 01:18:07 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id o35-20020a05600c512300b0039454a85a9asm12966510wms.30.2022.05.09.01.18.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 May 2022 01:18:06 -0700 (PDT) Message-ID: Date: Mon, 9 May 2022 09:18:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-GB To: internals@lists.php.net References: <5598bad8-4e1a-7638-d3aa-36b02568d1a8@alec.pl> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] NULL Coercion Consistency From: rowan.collins@gmail.com (Rowan Tommins) On 08/05/2022 22:33, Björn Larsson via internals wrote: > It's not only ugly code ;) To make your program/application/library 8.1 > compatible using that codepattern requires en effort, but brings close > to zero improvement, except being 8.1 compatible. So the net effect is > negative. Important correction: that change is to make your codebase PHP 9.0 compatible, not PHP 8.1 compatible. That is the point of deprecation notices, to give advance warning that something will become incompatible in the future; when you act on that notice is up to you, and not in any sense about "compatibility" with the version that raises the notice. (For my thoughts on the rest of what you're saying, see every other message I've sent to this thread.) Regards, -- Rowan Tommins [IMSoP]