Re: [RFC] Deprecate lossy conversions to and from bool

From: Date: Sun, 29 Nov 2026 22:56:55 +0000
Subject: Re: [RFC] Deprecate lossy conversions to and from bool
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-133259@lists.php.net to get a copy of this message
> Am 29.11.2026 um 15:33 schrieb Theodore Brown <theodorejb@outlook.com>: > I've been planning this RFC for quite some time, and during the Thanksgiving break I > finally had time to finish it: > https://wiki.php.net/rfc/deprecate-lossy-bool-conversions One thing I was surprised by when looking at the PR's changes https://github.com/php/php-src/pull/25889/changes is the huge number of tests which have been changed. Looking through some of them I realized that they are sometimes cleanups (possibly triggered by the new deprecation warning?) but it is not always obvious why the change was necessary or if it maintains the spirit of the test (). I am a bit worried about the actual impact on legacy code bases and will have to give the patch a try before coming to my final conclusion. Regards, - Chris

« previous php.internals (#133259) next »