[DOC-CVS] [doc-en] master: PHPC-2643: Document using PIE to install ext-mongodb (#5052)

[email protected] (Andreas Braun via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Andreas Braun (alcaeus)
Committer: GitHub (web-flow)
Pusher: alcaeus
Date: 2025-12-22T15:05:45+01:00

Commit: https://github.com/php/doc-en/commit/6536bde9ac873428828d7c62cc8d0d04b1a24267
Raw diff: https://github.com/php/doc-en/commit/6536bde9ac873428828d7c62cc8d0d04b1a24267.diff

PHPC-2643: Document using PIE to install ext-mongodb (#5052)

* Update note about required PHP version

* PHPC-2643: Document using PIE to install ext-mongodb

Changed paths:
  M  reference/mongodb/configure.xml
  M  reference/mongodb/setup.xml


Diff:

diff --git a/reference/mongodb/configure.xml b/reference/mongodb/configure.xml
index 07bcba2386a4..109f1b595681 100644
--- a/reference/mongodb/configure.xml
+++ b/reference/mongodb/configure.xml
@@ -4,6 +4,22 @@
 <section xml:id="mongodb.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  &reftitle.install;
 
+ <section xml:id="mongodb.installation.pie">
+  <title>Installing the MongoDB PHP Extension with PIE</title>
+
+   &pecl.moving.to.pie;
+
+   <para>
+    To install the MongoDB extension using PIE, run the following command:
+    <programlisting role="shell">
+     <![CDATA[
+pie install mongodb/mongodb-extension
+]]>
+    </programlisting>
+   </para>
+
+ </section>
+
  <section xml:id="mongodb.installation.pecl">
   <title>Installing the MongoDB PHP Extension with PECL</title>
 
diff --git a/reference/mongodb/setup.xml b/reference/mongodb/setup.xml
index 03ee46ef603f..02832c480ad7 100644
--- a/reference/mongodb/setup.xml
+++ b/reference/mongodb/setup.xml
@@ -7,7 +7,7 @@
  <section xml:id="mongodb.requirements">
   &reftitle.required;
   <para>
-   As of version 1.16.0, the extension requires PHP 7.2 or higher. Previous
+   As of version 1.21.0, the extension requires PHP 8.1 or higher. Previous
    versions of the extension allow compatibility with older PHP versions.
   </para>
   <para>
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.