[doc-en] master: ext/gmp: Document that GMP can now be cast to bool (8.4.0) (#5771)

From: Date: Wed, 19 Aug 2026 05:08:09 +0000
Subject: [doc-en] master: ext/gmp: Document that GMP can now be cast to bool (8.4.0) (#5771)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23578@lists.php.net to get a copy of this message
Author: Louis-Arnaud (lacatoire) Committer: GitHub (web-flow) Pusher: lacatoire Date: 2026-08-19T07:08:07+02:00 Commit: https://github.com/php/doc-en/commit/021351bd14ec5ce2e25b217d1c7e0ddefa0c3830 Raw diff: https://github.com/php/doc-en/commit/021351bd14ec5ce2e25b217d1c7e0ddefa0c3830.diff ext/gmp: Document that GMP can now be cast to bool (8.4.0) (#5771) Changed paths: M reference/gmp/gmp.xml Diff: diff --git a/reference/gmp/gmp.xml b/reference/gmp/gmp.xml index 730682f71368..a4934b88b955 100644 --- a/reference/gmp/gmp.xml +++ b/reference/gmp/gmp.xml @@ -55,6 +55,15 @@ <classname>GMP</classname> is now marked <modifier>final</modifier> </entry> </row> + <row> + <entry>8.4.0</entry> + <entry> + A <classname>GMP</classname> object can now be cast to + <type>bool</type>; an object representing <literal>0</literal> is cast + to &false;, and any other value to &true;. Previously, casting to + <type>bool</type> emitted an <constant>E_RECOVERABLE_ERROR</constant>. + </entry> + </row> </tbody> </tgroup> </informaltable>

« previous php.doc.cvs (#23578) next »