diff --git a/reference/gmp/functions/gmp-clrbit.xml b/reference/gmp/functions/gmp-clrbit.xml
index fd6f56899b9c..7bf5a41af6ac 100644
--- a/reference/gmp/functions/gmp-clrbit.xml
+++ b/reference/gmp/functions/gmp-clrbit.xml
@@ -50,6 +50,16 @@
+
+ &reftitle.errors;
+
+ Throws a ValueError if index is negative or, as of PHP 8.5.0, too large.
+
+
+ Prior to PHP 8.0.0, an E_WARNING was raised instead.
+
+
+
&reftitle.examples;
diff --git a/reference/gmp/functions/gmp-fact.xml b/reference/gmp/functions/gmp-fact.xml
index dc58908b1dcb..178f86ba306b 100644
--- a/reference/gmp/functions/gmp-fact.xml
+++ b/reference/gmp/functions/gmp-fact.xml
@@ -41,6 +41,16 @@
+
+ &reftitle.errors;
+
+ Throws a ValueError if num is negative.
+
+
+ Prior to PHP 8.0.0, an E_WARNING was raised instead.
+
+
+
&reftitle.examples;
diff --git a/reference/gmp/functions/gmp-pow.xml b/reference/gmp/functions/gmp-pow.xml
index 51e7796afa5a..28981a3c19f5 100644
--- a/reference/gmp/functions/gmp-pow.xml
+++ b/reference/gmp/functions/gmp-pow.xml
@@ -51,6 +51,16 @@
+
+ &reftitle.errors;
+
+ Throws a ValueError if exponent is negative.
+
+
+ Prior to PHP 8.0.0, an E_WARNING was raised instead.
+
+
+
&reftitle.examples;
@@ -63,8 +73,6 @@ $pow1 = gmp_pow("2", 31);
echo gmp_strval($pow1) . "\n";
$pow2 = gmp_pow("0", 0);
echo gmp_strval($pow2) . "\n";
-$pow3 = gmp_pow("2", -1); // Negative exp, generates warning
-echo gmp_strval($pow3) . "\n";
?>
]]>
diff --git a/reference/gmp/functions/gmp-powm.xml b/reference/gmp/functions/gmp-powm.xml
index bb5dffa1cb5d..caa9f1825115 100644
--- a/reference/gmp/functions/gmp-powm.xml
+++ b/reference/gmp/functions/gmp-powm.xml
@@ -14,11 +14,10 @@
GMPintstringexponent
GMPintstringmodulus
-
+
Calculate (num raised into power
- exponent) modulo modulus. If
- exponent is negative, result is undefined.
-
+ exponent) modulo modulus.
+
@@ -64,6 +63,20 @@
+
+ &reftitle.errors;
+
+ Throws a ValueError if exponent is negative.
+
+
+ Throws a DivisionByZeroError if modulus
+ is 0.
+
+
+ Prior to PHP 8.0.0, an E_WARNING was raised instead.
+
+
+
&reftitle.examples;
diff --git a/reference/gmp/functions/gmp-root.xml b/reference/gmp/functions/gmp-root.xml
index 74b014cee2a7..6b7b50ba14b0 100644
--- a/reference/gmp/functions/gmp-root.xml
+++ b/reference/gmp/functions/gmp-root.xml
@@ -47,6 +47,17 @@
The integer component of the resultant root, as a GMP number.
+
+
+ &reftitle.errors;
+
+ Throws a ValueError if nth is less than 1,
+ or if nth is even and num is negative.
+
+
+ Prior to PHP 8.0.0, an E_WARNING was raised instead.
+
+