Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128078 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 C055F1A00BC for ; Wed, 16 Jul 2025 12:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752667950; bh=81kwCJTjdF/OjQxqiKnthcMtXklvImhn6SbKMqhs0UU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=LLY/IwHgmV6xEfXuXOVdkv6eqDVUO3Tt2zzmuiaV++fN0+jtTrLB92qeHMc2A05fd KZIKbodJGsCrcG18T7zfaerf7WiTVGxkkWQj7cMnFK5b5tWLG7lLDQve+UOLa9ExOm PRsaM2nZKzxQdMtWUBmE1n+XWjRT8OD6OtOIKTZ1LJhy4SqJ/gHqzXd8K/QvmbqF11 SSQgByGS3DPl5zF1O6wXpunjbu25luwmGa99EAWtDi0J8fO6QsGd89GZLBDVtHV2b7 fgIiy9g3oGDg43zVGSTErPfIDGSkeL2KH1eaPGFVSYEnUy7If6biRMD9kRf+MTQKJn BlQabeIcptIuw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 82BA6180074 for ; Wed, 16 Jul 2025 12:12:29 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL 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 xdebug.org (xdebug.org [82.113.146.227]) (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 ; Wed, 16 Jul 2025 12:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752668055; bh=81kwCJTjdF/OjQxqiKnthcMtXklvImhn6SbKMqhs0UU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=bsZA7cHqa2m6Y6bn7pCpLyNbM9KIWjYVI21aZiEF4YkKVT3C5cguo/yqgrPdfwWU3 LndDRdmDa4tH4ic729qnp4o/F9IAbT4JLnN0TZr1Wxx98tYrUIP6fnpziuz9nT5nI9 V0wunbJJ+g51l1EDUxvb+dcQpsEsWj7pzattLXOLNxzaqxbqND2cg2vqzP90QZiewU rdn6TdY8cFQsZro1ZjJG0lYDWSX74Yot1NnpdVVyuBXu22cKDmjgZEwR6b1jwYnqzs 81OZcrfj/N9zgrKX6I1yL5yyyYbCfO0FpkdpelY71X/D2Cz297Wg5ZalQvQ0khyJQZ sU2g761TIS9gw== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id ED1E110C033; Wed, 16 Jul 2025 13:14:14 +0100 (BST) Date: Wed, 16 Jul 2025 13:14:14 +0100 (BST) To: "Gina P. Banyard" cc: PHP internals Subject: Re: [PHP-DEV][RFC] Deprecate type juggling to and from bool type within the function type juggling context In-Reply-To: Message-ID: <70524ffe-82ab-3b31-8913-bb8124a8cb92@php.net> References: <3Yl0UGauXmKqk7s7Hqbv6iaXru-hZHf8Wj6VjwwihgRSaqZo5EZ2ndsOle-ae41C-lvnirynWt6PpuD7UJPL0zPCw18QHFE81Eb--fiiEbc=@gpb.moe> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-932340089-1752667914=:52945" From: derick@php.net (Derick Rethans) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-932340089-1752667914=:52945 Content-Type: text/plain; CHARSET=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 26 Jun 2025, Gina P. Banyard wrote: > On Monday, 2 June 2025 at 17:11, Gina P. Banyard wrot= e: >=20 > > This is the first RFC out of a set of type system related RFCs I=20 > > want to propose for PHP 8.5. It also used the recently enabled=20 > > Markdown support on the wiki, so there might be a few oddities. > >=20 > > The RFC proposes to deprecate implicit type coercions to and from=20 > > the bool type for other scalar types. This a "weak" mode change=20 > > only, as when strict_types are enabled none of these coercions can=20 > > happen. > >=20 > > Let me know what you think about it. > >=20 > > RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling >=20 > I have updated the RFC to version 0.2 that expands on it and addresses=20 > some of the counterarguments which were said during the discussion.=20 > RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling >=20 > If there is no-follow up feedback, I will open the vote for it=20 > sometime next week. I am sorry to say, but this RFC seems to be mostly to have a 'purity'=20 argument behind it. The RFC also does not seems to include an analysis=20 of the impact. I can almost guarantee you that this is going to 'break'=20 (by a deprecation warning?) a lot of code. Even the changes made for=20 symfony seem non-trivial, and easy to get wrong=20 (https://github.com/symfony/symfony/pull/60890/files). But we don't know, as there is no data on this =E2=80=94 that's why I feel = that=20 this is not a mature enough RFC. cheers, Derick --8323329-932340089-1752667914=:52945--