Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117812 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35683 invoked from network); 28 May 2022 04:41:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 May 2022 04:41:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8FD3C180053 for ; Fri, 27 May 2022 23:25: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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15576 212.103.64.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 27 May 2022 23:25:04 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 4D79941FC0 for ; Sat, 28 May 2022 08:25:03 +0200 (CEST) Authentication-Results: ext-mx-out003.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:references:content-language:subject:subject :mime-version:date:date:message-id:received:received:received; s=dkim20160331; t=1653719102; x=1655533503; bh=1YtfmuP3UC0CZaMz HFC1K0VDYJsFx5PBFxiVF3LLUWQ=; b=T03cgbI1MNML8+j0drEqUfqLRPCy33V5 rchjBGPgDY7U3HxLbusvh8BKGz51nnBjD1wr/ZFx70S70vFo6FNMPf6PUpDTju05 M6Wi0DDmZGvtEh1nzxpoMln5xuin5wgT/uixtL/RsJKgaBkKaX3kcGo1mtw3lT3Y 6Il52oVcMqEYeojyvkpEj0JujNt/BUChL+MbOF3y1NwTVuMNEoSENYrDOBUSO3B9 8JVZLBcffFygKolxDuy4XNUyiyO8HGBgAA64IMFXvy1HtSr1n5f1EpP/9UkEbnoy V1xX8eDvuU5gG9vD9fD8Plxh0DWu+9hF/3JajILV7KIYyssn/YJHF6BFMhTwEia0 GiagqyAYWLjmhfFNYpp97BNhMb2NuONcWk9QlzTg0GMIDyyVriLvwlRH+4cvzUav BGmUurkltDGsh+YdWvRGPs8Vnzmz8Cbcou9rK3En91Sfpf3ZWAjfeJaKzbmaETUo Tao9WDkcIL8rg74oogsOG9NSXDGRRhd4aiaOJFV0UpT5yZungJ6s4oLz4cGmdHIh iKPVTnGMrk2HHA5cGfKvs/xwDyFe/a8MLmwDWESAcWKfy5nIkm552wHbvcDE/q+J XxWXkHN+H7RwUJRGX64b8A+P58CNTgYWIBlo6gPvcecYfLW3bbB/08ktAo81wZxN 6N2lx9S49bs= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id chu1tVsNfKaN for ; Sat, 28 May 2022 08:25:02 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by mx.kolabnow.com (Postfix) with ESMTPS id F1C1841EEC for ; Sat, 28 May 2022 08:25:01 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx002.mykolab.com (Postfix) with ESMTPS id A26472803 for ; Sat, 28 May 2022 08:25:01 +0200 (CEST) Message-ID: Date: Sat, 28 May 2022 08:25:00 +0200 MIME-Version: 1.0 Content-Language: en-US To: internals@lists.php.net References: <2B63A776-11B9-49BF-AE0A-FCF7F4E738F2@craigfrancis.co.uk> In-Reply-To: <2B63A776-11B9-49BF-AE0A-FCF7F4E738F2@craigfrancis.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: NULL Coercion Consistency From: alec@alec.pl (Aleksander Machniak) On 28.05.2022 04:36, Craig Francis wrote: > 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 > > I give up. Don't give up. You have my Yes vote. Imo, the RFC: - fixes real upgrade problem (very important), - improves consistency in a better way than the solution introduced in 8.1. - does not change strict_types behavior Some people don't care with what arguments their functions are called with. As long as the value can be coerced to the expected type the function will do what it is supposed to do. Other people have strict_types. All people don't want to be forced to modify a working code. So, this is another "battle" between strict and non-strict camps. I'd like to see which is the majority these days. I hope that even some strict-code proponents can see this makes sense. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com