Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127756 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 334601A00BC for ; Thu, 26 Jun 2025 12:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750939389; bh=UWH/3uX/2QfXQJOqw1Z4LNa0oOITXGrBoFZ7sZ6ohf8=; h=Date:To:From:Subject:In-Reply-To:References:From; b=OgmrO8rqeCCnj7DeXwNzyDRpzhYTFQQU7oR3P/htzbBTtcYI1KcDuWSCMB9sSoi8w 9PJbOsr29/tP/eM2cjHw0ZeduLFx2E5wTdPTCVkc0epFKZ0ItTRfPdzylPevfS9mWt csPLaoGuLPAw4bDav0cVPHnNXR/u0SvydzJXa62WBEULvbXEJQ89wV4CM8Q+nT/YIK eX+nNJ4oX96tPWg41Nqus2JPaOYn7cG3HJREyC1C7HDyleQkeeZd+fgWnifAyqDhE2 LZLk7YuXE3czhCfzMW9TOEsoB5Za5JgWLxMQoHCgJ2S26SVS+dhYFWLmweLWj2R8KM uJydRyRlaQCgw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AF51818004E for ; Thu, 26 Jun 2025 12:03:07 +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_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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-24421.protonmail.ch (mail-24421.protonmail.ch [109.224.244.21]) (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 ; Thu, 26 Jun 2025 12:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail3; t=1750939500; x=1751198700; bh=UWH/3uX/2QfXQJOqw1Z4LNa0oOITXGrBoFZ7sZ6ohf8=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=UJgTN4laPdxJMg2dsMZICx5cNIRWNG64HcGkSZ4jXSVpSLNwHFsrDEqCOOJDQQ+EK 6SlkersDpbIfi5bRUVRpyoew8U1VyP0njgzV9VC6nOHE5RqnK1u/cGu0/0JyVQSe0g edjNpbNlLPw5+3taO8shniThkPWQk1M38lDQ9cshHfAj6rpoRo9IryEgjA4zqooJA5 9NcZhOMhgOxpzpKY7yd1rwhn+zZcNC+f1ZAg6jG6kt5C3i0gbfx5GnYDKGReTWYS7U 4OmhsHS/9VqnRhZ+avgSW35gIIxlVSeHG3uUZ0OfAeC4Uh4Stmca+zCxKvaXP1EFrr kNkOQmaPCQ1yA== Date: Thu, 26 Jun 2025 12:04:54 +0000 To: PHP internals Subject: Re: [PHP-DEV][RFC] Deprecate type juggling to and from bool type within the function type juggling context Message-ID: In-Reply-To: <3Yl0UGauXmKqk7s7Hqbv6iaXru-hZHf8Wj6VjwwihgRSaqZo5EZ2ndsOle-ae41C-lvnirynWt6PpuD7UJPL0zPCw18QHFE81Eb--fiiEbc=@gpb.moe> References: <3Yl0UGauXmKqk7s7Hqbv6iaXru-hZHf8Wj6VjwwihgRSaqZo5EZ2ndsOle-ae41C-lvnirynWt6PpuD7UJPL0zPCw18QHFE81Eb--fiiEbc=@gpb.moe> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: 07da595f986bff7168719f8fd6d18d62204561b6 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Monday, 2 June 2025 at 17:11, Gina P. Banyard wrote: > Hello internals, >=20 > 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. >=20 > The RFC proposes to deprecate implicit type coercions to and from the boo= l type for other scalar types. > This a "weak" mode change only, as when strict_types are enabled none of = these coercions can happen. >=20 > Let me know what you think about it. >=20 > RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling I have updated the RFC to version 0.2 that expands on it and addresses some= of the counterarguments which were said during the discussion. RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling If there is no-follow up feedback, I will open the vote for it sometime nex= t week. Best regards, Gina P. Banyard