Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127570 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 2FC221A00BC for ; Tue, 3 Jun 2025 18:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748975446; bh=q5HqgdmSHxdVA6/ZOZFD+RynD1t/3z8TMfRKqzjM1Cs=; h=Date:Subject:To:References:From:In-Reply-To:From; b=WiosNLUil9anGSOrU8gv3zFndpUgXaIdIAvOm7bUD6ryYCQVqZUGJWyRg0oomQqeA iysngEa2/Nz0LLFSBh4D6oG2UDCzloVUh6vNREj9l/JjXpmcTXDHhQQnRFE8dg98ZN 7LCMFOc9Q6PT2o5pwULmO/HZ/C4goAZc1Z5EUaQhHMBas5dGcj4mw4ZvzfyvOeHWr3 s7xKbwPUTcG81KAr1bDZpt0/y5D1+J7i00PV/ehvHq570gKXagoXZC43whXIt/e1Ff ovA5/BiUgxLxEofLBoNqh4s9JrpezU2lVaJwDB+oZGlppXB5Q4+pvuk6bGarWyKrlb NK+RiA4n7WkOQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1978E180087 for ; Tue, 3 Jun 2025 18:30:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-108-mta116.mxroute.com (mail-108-mta116.mxroute.com [136.175.108.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 3 Jun 2025 18:30:45 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta116.mxroute.com (ZoneMTA) with ESMTPSA id 197371140980008631.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 03 Jun 2025 18:32:47 +0000 X-Zone-Loop: ffc76a6f59b718ce6ff7a2a5e184a4086f34b8fb317a X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sandfox.me; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To: Subject:MIME-Version:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=ls2QDKKCoWAuBYGUM0cuO9jqJIwH/YMugzMKKyqbiNM=; b=uqoy8DwxYpEK 2SGAs16lUuV/op+5f4tamxVL6FiCpc2oTTngBslfLLNyBoYehaO6RQPlgU3ZPjjM+i1drwyIZumFC VEEzIINdfniE7vWurADvcry/r30Tt/0zvLnRwiGVWvUu8QIXnaTt3+sWuiaUkKkymTH5f+QAdqLJq IkhwkVBO492pR3CHMR/cxgA0SHozSj0Yw88qqT8xmclGyxRhjo7whLe3jb3gh2VXSc+WZs7argvyo PGQf6MTlH1bd9a4RJG2R8IzHngyp+3OKcBcGdGq3a7QqU6T6d86zpdDX2dLeZJKgB2iesL9Gsvj63 vlMGwIL0FsJqBwCU/OXOEQ==; Message-ID: <285697b4-f94b-4c62-89a7-38f952d87df8@sandfox.me> Date: Tue, 3 Jun 2025 21:32:43 +0300 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV][RFC] Deprecate type juggling to and from bool type within the function type juggling context To: internals@lists.php.net References: <3Yl0UGauXmKqk7s7Hqbv6iaXru-hZHf8Wj6VjwwihgRSaqZo5EZ2ndsOle-ae41C-lvnirynWt6PpuD7UJPL0zPCw18QHFE81Eb--fiiEbc=@gpb.moe> Content-Language: en-US In-Reply-To: <3Yl0UGauXmKqk7s7Hqbv6iaXru-hZHf8Wj6VjwwihgRSaqZo5EZ2ndsOle-ae41C-lvnirynWt6PpuD7UJPL0zPCw18QHFE81Eb--fiiEbc=@gpb.moe> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: sandfox@sandfox.me From: sandfox@sandfox.me (Anton Smirnov) On 02/06/2025 19:11, Gina P. Banyard wrote: > Hello internals, > > This is the first RFC out of a set of type system related RFCs I want to propose for PHP 8.5. > It also used the recently enabled Markdown support on the wiki, so there might be a few oddities. > > The RFC proposes to deprecate implicit type coercions to and from the bool type for other scalar types. > This a "weak" mode change only, as when strict_types are enabled none of these coercions can happen. > > Let me know what you think about it. > > RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling > > Best regards, > > Gina P. Banyard Literally 15 minutes ago I caught a nasty bug caused by subj (true becoming 1 and meaning something else entirely). Well, I love the proposition.