[DOC-CVS] [doc-en] master: Add GMP as an example of internal object overloading bool cast (#5459)
[email protected] (David CARLIER via GitHub) Fri, 3 Apr 2026 19:13:41 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: David CARLIER (devnexen)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-04-03T21:13:38+02:00
Commit: https://github.com/php/doc-en/commit/fee54c7c435a1664a7a8b0e7b7de7cec4a084c45
Raw diff: https://github.com/php/doc-en/commit/fee54c7c435a1664a7a8b0e7b7de7cec4a084c45.diff
Add GMP as an example of internal object overloading bool cast (#5459)
* Add GMP as an example of internal object overloading bool cast
* Use classname tag for GMP instead of link
Changed paths:
M language/types/boolean.xml
Diff:
diff --git a/language/types/boolean.xml b/language/types/boolean.xml
index 0b196a2f4396..2ca481eb3834 100644
--- a/language/types/boolean.xml
+++ b/language/types/boolean.xml
@@ -114,7 +114,9 @@ if ($show_separators) {
<simpara>
Internal objects that overload their casting behaviour to bool.
For example: <link linkend="ref.simplexml">SimpleXML</link> objects
- created from empty elements without attributes.
+ created from empty elements without attributes, or
+ <classname>GMP</classname> objects representing the value
+ <literal>0</literal>.
</simpara>
</listitem>
</itemizedlist>