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

[email protected] (Louis-Arnaud via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.