[doc-en] master: Fix issue #4242 (#5912)

From: Date: Mon, 05 Oct 2026 14:07:55 +0000
Subject: [doc-en] master: Fix issue #4242 (#5912)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23809@lists.php.net to get a copy of this message
Author: Chun-Sheng, Li (peter279k)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-10-05T16:07:51+02:00

Commit: https://github.com/php/doc-en/commit/730b07298cda4075023ef9372e03e2811db2d76a
Raw diff: https://github.com/php/doc-en/commit/730b07298cda4075023ef9372e03e2811db2d76a.diff

Fix issue #4242 (#5912)

Changed paths:
  M  reference/gmp/functions/gmp-init.xml


Diff:

diff --git a/reference/gmp/functions/gmp-init.xml b/reference/gmp/functions/gmp-init.xml
index 52869dd73024..88b9cc14c631 100644
--- a/reference/gmp/functions/gmp-init.xml
+++ b/reference/gmp/functions/gmp-init.xml
@@ -27,6 +27,7 @@
      <simpara>
       An integer or a string. The string representation can be decimal,
       hexadecimal, octal, or binary.
+      Any whitespace in the input string is ignored.
      </simpara>
     </listitem>
    </varlistentry>
@@ -105,6 +106,9 @@
 <?php
 $a = gmp_init(123456);
 $b = gmp_init("0xFFFFDEBACDFEDF7200");
+$c = gmp_init("0xFFFFD EBACDFEDF7200");
+$d = gmp_init("FFFFD EBACDFEDF7200", 16);
+$e = gmp_init("123456789 00000");
 ?>
 ]]>
     </programlisting>


Thread (1 message)

  • Chun-Sheng, Li via GitHub
« previous php.doc.cvs (#23809) next »