From 11084a5f94900ff45c2ada04dd9dffe0b026e620 Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 22 May 2025 12:14:37 -0400 Subject: [PATCH 1/2] DOCSP-50022: remove eol server version mentions --- source/connect/stable-api.txt | 4 +-- source/connect/tls.txt | 18 ++++------ source/databases-collections/time-series.txt | 2 +- source/includes/extracts-common-option.yaml | 9 +++-- source/includes/extracts-option-requires.yaml | 35 +++---------------- source/includes/extracts-watch-option.yaml | 20 +++++------ .../mongodb-compatibility-table-php.rst | 27 -------------- .../method/MongoDBClient-dropDatabase.txt | 2 +- .../MongoDBClient-listDatabaseNames.txt | 10 +++--- .../method/MongoDBClient-listDatabases.txt | 10 +++--- .../reference/method/MongoDBClient-watch.txt | 2 +- .../method/MongoDBCollection-aggregate.txt | 3 +- .../method/MongoDBCollection-bulkWrite.txt | 2 +- .../method/MongoDBCollection-count.txt | 2 +- .../MongoDBCollection-countDocuments.txt | 2 +- .../method/MongoDBCollection-createIndex.txt | 5 ++- .../MongoDBCollection-createIndexes.txt | 5 ++- .../method/MongoDBCollection-deleteMany.txt | 4 +-- .../method/MongoDBCollection-deleteOne.txt | 4 +-- .../method/MongoDBCollection-distinct.txt | 2 +- .../method/MongoDBCollection-drop.txt | 2 +- .../method/MongoDBCollection-dropIndex.txt | 2 +- .../method/MongoDBCollection-dropIndexes.txt | 2 +- ...ngoDBCollection-estimatedDocumentCount.txt | 10 +++--- .../method/MongoDBCollection-explain.txt | 2 +- .../method/MongoDBCollection-find.txt | 2 +- .../method/MongoDBCollection-findOne.txt | 2 +- .../MongoDBCollection-findOneAndDelete.txt | 4 +-- .../MongoDBCollection-findOneAndReplace.txt | 4 +-- .../MongoDBCollection-findOneAndUpdate.txt | 8 ++--- .../method/MongoDBCollection-insertMany.txt | 2 +- .../method/MongoDBCollection-insertOne.txt | 2 +- .../method/MongoDBCollection-listIndexes.txt | 2 +- .../method/MongoDBCollection-rename.txt | 2 +- .../method/MongoDBCollection-replaceOne.txt | 4 +-- .../method/MongoDBCollection-updateMany.txt | 8 ++--- .../method/MongoDBCollection-updateOne.txt | 8 ++--- .../method/MongoDBCollection-watch.txt | 7 ++-- .../method/MongoDBDatabase-aggregate.txt | 3 +- .../MongoDBDatabase-createCollection.txt | 8 ++--- .../reference/method/MongoDBDatabase-drop.txt | 2 +- .../method/MongoDBDatabase-dropCollection.txt | 2 +- .../MongoDBDatabase-listCollectionNames.txt | 4 +-- .../MongoDBDatabase-listCollections.txt | 4 +-- .../MongoDBDatabase-modifyCollection.txt | 2 +- .../MongoDBDatabase-renameCollection.txt | 2 +- .../method/MongoDBDatabase-watch.txt | 2 +- .../method/MongoDBGridFSBucket-find.txt | 2 +- .../method/MongoDBGridFSBucket-findOne.txt | 2 +- source/security.txt | 29 --------------- source/security/authentication.txt | 28 +++------------ source/security/in-use-encryption.txt | 15 ++++---- source/tutorial/encryption.txt | 11 +++--- 53 files changed, 119 insertions(+), 238 deletions(-) diff --git a/source/connect/stable-api.txt b/source/connect/stable-api.txt index e00eeb55..6ce89a77 100644 --- a/source/connect/stable-api.txt +++ b/source/connect/stable-api.txt @@ -19,7 +19,7 @@ .. note:: - The {+stable-api+} feature requires {+mdb-server+} 5.0 or later. + The {+stable-api+} feature requires {+mdb-server+} 6.0 or later. Overview -------- @@ -116,4 +116,4 @@ API documentation: For more information about the ``MongoDB\Driver\ServerApi`` class, see the following {+extension-short+} API documentation: -- :php:`MongoDB\Driver\ServerApi ` \ No newline at end of file +- :php:`MongoDB\Driver\ServerApi ` diff --git a/source/connect/tls.txt b/source/connect/tls.txt index e8051122..3a7b0dca 100644 --- a/source/connect/tls.txt +++ b/source/connect/tls.txt @@ -127,17 +127,11 @@ to check whether a server's certificate has been revoked. OCSP ~~~~ -The Online Certificate Status Protocol (OCSP) process varies depending on the version of -{+mdb-server+} you're connecting to: - -- **MongoDB v4.4 or later:** The server staples a - time-stamped OCSP response to its certificate. The {+library-short+} validates the certificate - against the OCSP response. If the CA has revoked the certificate, or if the OCSP response - is otherwise invalid, the TLS handshake fails. -- **MongoDB v4.3 or earlier:** The server supplies an OCSP endpoint, which the {+library-short+} - contacts directly. The {+library-short+} then validates the certificate against the OCSP - response. If the CA hasn't revoked the certificate, the TLS handshake continues, even if - the OCSP response is invalid or malformed. +The Online Certificate Status Protocol (OCSP) process specifies that the +server staples a time-stamped OCSP response to its certificate. The +{+library-short+} validates the certificate against the OCSP response. +If the CA has revoked the certificate, or if the OCSP response is +otherwise invalid, the TLS handshake fails. To stop the {+library-short+} from contacting the OCSP endpoint, set the ``tlsDisableOCSPEndpointCheck`` connection option to ``true``. @@ -265,4 +259,4 @@ API Documentation To learn more about configuring TLS for the {+library-short+}, see the following API documentation: -- :phpclass:`MongoDB\Client` \ No newline at end of file +- :phpclass:`MongoDB\Client` diff --git a/source/databases-collections/time-series.txt b/source/databases-collections/time-series.txt index 9c21e2e3..69f923c4 100644 --- a/source/databases-collections/time-series.txt +++ b/source/databases-collections/time-series.txt @@ -60,7 +60,7 @@ Create a Time Series Collection .. important:: Server Version for Time Series Collections To create and interact with time series collections, you must be - connected to a deployment running {+mdb-server+} 5.0 or later. + connected to a deployment running {+mdb-server+} 6.0 or later. You can create a time series collection to store time series data. To create a time series collection, pass an options array to the diff --git a/source/includes/extracts-common-option.yaml b/source/includes/extracts-common-option.yaml index 68702d6e..f75bcd15 100644 --- a/source/includes/extracts-common-option.yaml +++ b/source/includes/extracts-common-option.yaml @@ -18,9 +18,9 @@ content: | :manual:`currentOp ` output, and :manual:`logs `. --- -ref: common-option-comment-string-before-4.4 +ref: common-option-comment-string-before-6.0 content: | - The comment can be any valid BSON type since MongoDB 4.4. Earlier server + The comment can be any valid BSON type starting in MongoDB 6.0. Earlier server versions only support string values. --- ref: common-option-hint @@ -35,8 +35,8 @@ content: | expressions that do not reference document fields. Parameters can then be accessed as variables in an aggregate expression context (e.g. ``$$var``). - This is not supported for server versions prior to 5.0 and will result in an - exception at execution time if used. + This feature is not supported for MongoDB server versions 6.0 and + earlier. If used, the server returns an exception at execution time. --- ref: common-option-maxTimeMS content: | @@ -88,4 +88,3 @@ content: | It is not possible to specify a write concern for individual operations as part of a transaction. Instead, set the ``writeConcern`` option when :php:`starting the transaction `. -... diff --git a/source/includes/extracts-option-requires.yaml b/source/includes/extracts-option-requires.yaml index 485ea899..7f0ab80b 100644 --- a/source/includes/extracts-option-requires.yaml +++ b/source/includes/extracts-option-requires.yaml @@ -1,35 +1,8 @@ ref: _option-requires-version content: | - This option is available since MongoDB {{version}} and will result in an - exception at execution time if specified for an older server version. ---- -ref: option-requires-4.2 -source: - file: extracts-option-requires.yaml - ref: _option-requires-version -replacement: - version: "4.2" ---- -ref: option-requires-4.4 -source: - file: extracts-option-requires.yaml - ref: _option-requires-version -replacement: - version: "4.4" ---- -ref: option-requires-5.0 -source: - file: extracts-option-requires.yaml - ref: _option-requires-version -replacement: - version: "5.0" ---- -ref: option-requires-5.3 -source: - file: extracts-option-requires.yaml - ref: _option-requires-version -replacement: - version: "5.3" + To use this option, you must connect to MongoDB {{version}} or later. + If you are connected to an earlier version, the server returns an + exception at execution time. --- ref: option-requires-6.0 source: @@ -44,5 +17,5 @@ source: ref: _option-requires-version replacement: version: "7.0" -... +--- diff --git a/source/includes/extracts-watch-option.yaml b/source/includes/extracts-watch-option.yaml index debf2014..0b38cc7b 100644 --- a/source/includes/extracts-watch-option.yaml +++ b/source/includes/extracts-watch-option.yaml @@ -24,9 +24,9 @@ content: | Specify "updateLookup" to return the current majority-committed version of the updated document. - MongoDB 6.0+ allows returning the post-image of the modified document if the + Starting in MongoDB 6.0, you can access the post-image of the modified document if the collection has ``changeStreamPreAndPostImages`` enabled. Specify - "whenAvailable" to return the post-image if available or a null value if not. + ``whenAvailable`` to return the post-image if available or a null value if not. Specify "required" to return the post-image if available or raise an error if not. @@ -105,8 +105,9 @@ content: | ``startAtOperationTime`` will result in a server error. The options are mutually exclusive. - This is not supported for server versions prior to 4.2 and will result in an - exception at execution time if used. + To use this option, you must connect to MongoDB 6.0 or later. + If you are connected to an earlier version, the server returns an + exception at execution time. This is an option of the ``$changeStream`` pipeline stage. @@ -115,15 +116,14 @@ content: | ref: watch-option-startAtOperationTime content: | If specified, the change stream will only provide changes that occurred at or - after the specified timestamp. Command responses from a MongoDB 4.0+ server - include an ``operationTime`` that can be used here. By default, the - ``operationTime`` returned by the initial ``aggregate`` command will be used - if available. + after the specified timestamp. By default, the ``operationTime`` + returned by the initial ``aggregate`` command will be used if available. Using this option in conjunction with ``resumeAfter`` and/or ``startAfter`` will result in a server error. The options are mutually exclusive. - This is not supported for server versions prior to 4.0 and will result in an - exception at execution time if used. + To use this option, you must connect to MongoDB 6.0 or later. + If you are connected to an earlier version, the server returns an + exception at execution time. This is an option of the ``$changeStream`` pipeline stage. diff --git a/source/includes/mongodb-compatibility-table-php.rst b/source/includes/mongodb-compatibility-table-php.rst index cdcba413..7c9c978e 100644 --- a/source/includes/mongodb-compatibility-table-php.rst +++ b/source/includes/mongodb-compatibility-table-php.rst @@ -7,50 +7,23 @@ - MongoDB 8.0 - MongoDB 7.0 - MongoDB 6.0 - - MongoDB 5.0 - - MongoDB 4.4 - - MongoDB 4.2 - - MongoDB 4.0 - - MongoDB 3.6 * - ext + lib 1.21 to 2.0 - ✓ - ✓ - ✓ - - ✓ - - ✓ - - ✓ - - ✓ [#deprecation-note]_ - - * - ext + lib 1.20 - ✓ - ✓ - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - * - ext + lib 1.16 to 1.19 - ⊛ - ✓ - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ * - ext + lib 1.15 - ⊛ - ⊛ - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - - ✓ - -.. [#deprecation-note] Support for this MongoDB version is deprecated and will be removed in a future release. diff --git a/source/reference/method/MongoDBClient-dropDatabase.txt b/source/reference/method/MongoDBClient-dropDatabase.txt index d5420e3b..e37d0b7c 100644 --- a/source/reference/method/MongoDBClient-dropDatabase.txt +++ b/source/reference/method/MongoDBClient-dropDatabase.txt @@ -43,7 +43,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBClient-listDatabaseNames.txt b/source/reference/method/MongoDBClient-listDatabaseNames.txt index 47ba4978..89f32e23 100644 --- a/source/reference/method/MongoDBClient-listDatabaseNames.txt +++ b/source/reference/method/MongoDBClient-listDatabaseNames.txt @@ -42,10 +42,10 @@ Parameters * - authorizedDatabases - boolean - A flag that determines which databases are returned based on the user - privileges when access control is enabled. For more information, see the - `listDatabases command documentation `_. - - For servers < 4.0.5, this option is ignored. + privileges when access control is enabled. To learn more, see the + :manual:`listDatabases command + ` reference in the + {+mdb-server+} manual. .. versionadded:: 1.7 @@ -53,7 +53,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBClient-listDatabases.txt b/source/reference/method/MongoDBClient-listDatabases.txt index baada43b..12cb8eb1 100644 --- a/source/reference/method/MongoDBClient-listDatabases.txt +++ b/source/reference/method/MongoDBClient-listDatabases.txt @@ -39,10 +39,10 @@ Parameters * - authorizedDatabases - boolean - A flag that determines which databases are returned based on the user - privileges when access control is enabled. For more information, see the - `listDatabases command documentation `_. - - For servers < 4.0.5, this option is ignored. + privileges when access control is enabled. To learn more, see the + :manual:`listDatabases command + ` reference in the + {+mdb-server+} manual. .. versionadded:: 1.7 @@ -50,7 +50,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBClient-watch.txt b/source/reference/method/MongoDBClient-watch.txt index 8bf455d2..1aff1e71 100644 --- a/source/reference/method/MongoDBClient-watch.txt +++ b/source/reference/method/MongoDBClient-watch.txt @@ -64,7 +64,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-aggregate.txt b/source/reference/method/MongoDBCollection-aggregate.txt index 24080b45..c31065b5 100644 --- a/source/reference/method/MongoDBCollection-aggregate.txt +++ b/source/reference/method/MongoDBCollection-aggregate.txt @@ -87,8 +87,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - The comment can be any valid BSON type for server versions 4.4 and - above. Earlier server versions only support string values. + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst .. versionadded:: 1.3 diff --git a/source/reference/method/MongoDBCollection-bulkWrite.txt b/source/reference/method/MongoDBCollection-bulkWrite.txt index 2f607ea4..c4804568 100644 --- a/source/reference/method/MongoDBCollection-bulkWrite.txt +++ b/source/reference/method/MongoDBCollection-bulkWrite.txt @@ -92,7 +92,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-count.txt b/source/reference/method/MongoDBCollection-count.txt index 5e0d3112..763b86c7 100644 --- a/source/reference/method/MongoDBCollection-count.txt +++ b/source/reference/method/MongoDBCollection-count.txt @@ -53,7 +53,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-countDocuments.txt b/source/reference/method/MongoDBCollection-countDocuments.txt index dc882777..fceef0ef 100644 --- a/source/reference/method/MongoDBCollection-countDocuments.txt +++ b/source/reference/method/MongoDBCollection-countDocuments.txt @@ -50,7 +50,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst * - hint - string|array|object diff --git a/source/reference/method/MongoDBCollection-createIndex.txt b/source/reference/method/MongoDBCollection-createIndex.txt index e99712f6..94c71e01 100644 --- a/source/reference/method/MongoDBCollection-createIndex.txt +++ b/source/reference/method/MongoDBCollection-createIndex.txt @@ -93,7 +93,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -107,8 +107,7 @@ Parameters concern plus ``"votingMembers"``, which indicates all voting data-bearing nodes. - This is not supported for server versions prior to 4.4 and will result - in an exception at execution time if used. + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.7 diff --git a/source/reference/method/MongoDBCollection-createIndexes.txt b/source/reference/method/MongoDBCollection-createIndexes.txt index dc6d2f5a..e1256080 100644 --- a/source/reference/method/MongoDBCollection-createIndexes.txt +++ b/source/reference/method/MongoDBCollection-createIndexes.txt @@ -56,7 +56,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -70,8 +70,7 @@ Parameters concern plus ``"votingMembers"``, which indicates all voting data-bearing nodes. - This is not supported for server versions prior to 4.4 and will result - in an exception at execution time if used. + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.7 diff --git a/source/reference/method/MongoDBCollection-deleteMany.txt b/source/reference/method/MongoDBCollection-deleteMany.txt index 0f38e058..ebf33912 100644 --- a/source/reference/method/MongoDBCollection-deleteMany.txt +++ b/source/reference/method/MongoDBCollection-deleteMany.txt @@ -51,7 +51,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -59,7 +59,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.7 diff --git a/source/reference/method/MongoDBCollection-deleteOne.txt b/source/reference/method/MongoDBCollection-deleteOne.txt index a479f237..017abe0d 100644 --- a/source/reference/method/MongoDBCollection-deleteOne.txt +++ b/source/reference/method/MongoDBCollection-deleteOne.txt @@ -53,7 +53,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -61,7 +61,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.7 diff --git a/source/reference/method/MongoDBCollection-distinct.txt b/source/reference/method/MongoDBCollection-distinct.txt index 045b3012..abe63bf3 100644 --- a/source/reference/method/MongoDBCollection-distinct.txt +++ b/source/reference/method/MongoDBCollection-distinct.txt @@ -55,7 +55,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-drop.txt b/source/reference/method/MongoDBCollection-drop.txt index a7a9df1f..1834f367 100644 --- a/source/reference/method/MongoDBCollection-drop.txt +++ b/source/reference/method/MongoDBCollection-drop.txt @@ -41,7 +41,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-dropIndex.txt b/source/reference/method/MongoDBCollection-dropIndex.txt index bbbff49c..114a3502 100644 --- a/source/reference/method/MongoDBCollection-dropIndex.txt +++ b/source/reference/method/MongoDBCollection-dropIndex.txt @@ -47,7 +47,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-dropIndexes.txt b/source/reference/method/MongoDBCollection-dropIndexes.txt index cad32dcc..b8ed93e4 100644 --- a/source/reference/method/MongoDBCollection-dropIndexes.txt +++ b/source/reference/method/MongoDBCollection-dropIndexes.txt @@ -45,7 +45,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-estimatedDocumentCount.txt b/source/reference/method/MongoDBCollection-estimatedDocumentCount.txt index 542d8c2f..a86d873f 100644 --- a/source/reference/method/MongoDBCollection-estimatedDocumentCount.txt +++ b/source/reference/method/MongoDBCollection-estimatedDocumentCount.txt @@ -43,7 +43,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -89,10 +89,10 @@ within a transaction. See in the MongoDB manual for more information. This method is implemented using the :manual:`count ` -command. Due to an oversight in versions 5.0.0-5.0.8 of MongoDB, the ``count`` -command was not included in version "1" of the Stable API. Applications using -this method with the Stable API are recommended to upgrade their server version -to 5.0.9+ or disable strict mode to avoid encountering errors. +command. The ``count`` command *is not* included in version ``1`` of the +{+stable-api+}. If you enable the {+stable-api+} and want to use this +method, upgrade your server version to MongoDB 6.0 or disable strict +mode to avoid encountering errors. See Also -------- diff --git a/source/reference/method/MongoDBCollection-explain.txt b/source/reference/method/MongoDBCollection-explain.txt index 52c2520f..da0fa69e 100644 --- a/source/reference/method/MongoDBCollection-explain.txt +++ b/source/reference/method/MongoDBCollection-explain.txt @@ -49,7 +49,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst Defaults to the ``comment`` of the explained operation (if any). diff --git a/source/reference/method/MongoDBCollection-find.txt b/source/reference/method/MongoDBCollection-find.txt index 34cd979f..b529af7f 100644 --- a/source/reference/method/MongoDBCollection-find.txt +++ b/source/reference/method/MongoDBCollection-find.txt @@ -81,7 +81,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst * - cursorType - integer diff --git a/source/reference/method/MongoDBCollection-findOne.txt b/source/reference/method/MongoDBCollection-findOne.txt index 99aca91c..5fc6e59f 100644 --- a/source/reference/method/MongoDBCollection-findOne.txt +++ b/source/reference/method/MongoDBCollection-findOne.txt @@ -67,7 +67,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst * - hint - string|array|object diff --git a/source/reference/method/MongoDBCollection-findOneAndDelete.txt b/source/reference/method/MongoDBCollection-findOneAndDelete.txt index a1eb75cb..f375890a 100644 --- a/source/reference/method/MongoDBCollection-findOneAndDelete.txt +++ b/source/reference/method/MongoDBCollection-findOneAndDelete.txt @@ -51,7 +51,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -59,7 +59,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.7 diff --git a/source/reference/method/MongoDBCollection-findOneAndReplace.txt b/source/reference/method/MongoDBCollection-findOneAndReplace.txt index 68c862a4..cee9f3ef 100644 --- a/source/reference/method/MongoDBCollection-findOneAndReplace.txt +++ b/source/reference/method/MongoDBCollection-findOneAndReplace.txt @@ -66,7 +66,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -74,7 +74,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.7 diff --git a/source/reference/method/MongoDBCollection-findOneAndUpdate.txt b/source/reference/method/MongoDBCollection-findOneAndUpdate.txt index c48db888..67d14251 100644 --- a/source/reference/method/MongoDBCollection-findOneAndUpdate.txt +++ b/source/reference/method/MongoDBCollection-findOneAndUpdate.txt @@ -36,8 +36,8 @@ Parameters ``$update`` : array|object Specifies the field and value combinations to update and any relevant update operators. ``$update`` uses MongoDB's :manual:`update operators - `. Starting with MongoDB 4.2, an `aggregation - pipeline `_ + `. You can also pass an :manual:`aggregation + pipeline ` can be passed as this parameter. ``$options`` : array @@ -71,7 +71,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -79,7 +79,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.7 diff --git a/source/reference/method/MongoDBCollection-insertMany.txt b/source/reference/method/MongoDBCollection-insertMany.txt index 4e07aa0a..abc2ac75 100644 --- a/source/reference/method/MongoDBCollection-insertMany.txt +++ b/source/reference/method/MongoDBCollection-insertMany.txt @@ -58,7 +58,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-insertOne.txt b/source/reference/method/MongoDBCollection-insertOne.txt index aa92ba9f..dd73aa60 100644 --- a/source/reference/method/MongoDBCollection-insertOne.txt +++ b/source/reference/method/MongoDBCollection-insertOne.txt @@ -58,7 +58,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-listIndexes.txt b/source/reference/method/MongoDBCollection-listIndexes.txt index de289989..272edc91 100644 --- a/source/reference/method/MongoDBCollection-listIndexes.txt +++ b/source/reference/method/MongoDBCollection-listIndexes.txt @@ -40,7 +40,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-rename.txt b/source/reference/method/MongoDBCollection-rename.txt index 720c4d34..6e4c2337 100644 --- a/source/reference/method/MongoDBCollection-rename.txt +++ b/source/reference/method/MongoDBCollection-rename.txt @@ -60,7 +60,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBCollection-replaceOne.txt b/source/reference/method/MongoDBCollection-replaceOne.txt index 13797018..92c14ca2 100644 --- a/source/reference/method/MongoDBCollection-replaceOne.txt +++ b/source/reference/method/MongoDBCollection-replaceOne.txt @@ -67,7 +67,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -75,7 +75,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.2.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.6 diff --git a/source/reference/method/MongoDBCollection-updateMany.txt b/source/reference/method/MongoDBCollection-updateMany.txt index 86d1d2a2..bdb37bb5 100644 --- a/source/reference/method/MongoDBCollection-updateMany.txt +++ b/source/reference/method/MongoDBCollection-updateMany.txt @@ -36,8 +36,8 @@ Parameters ``$update`` : array|object Specifies the field and value combinations to update and any relevant update operators. ``$update`` uses MongoDB's :manual:`update operators `. - Starting with MongoDB 4.2, an `aggregation pipeline - `_ + You can also pass an :manual:`aggregation pipeline + ` can be passed as this parameter. ``$options`` : array @@ -71,7 +71,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -79,7 +79,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.2.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.6 diff --git a/source/reference/method/MongoDBCollection-updateOne.txt b/source/reference/method/MongoDBCollection-updateOne.txt index 131ac036..7a701a9b 100644 --- a/source/reference/method/MongoDBCollection-updateOne.txt +++ b/source/reference/method/MongoDBCollection-updateOne.txt @@ -37,8 +37,8 @@ Parameters ``$update`` : array|object Specifies the field and value combinations to update and any relevant update operators. ``$update`` uses MongoDB's :manual:`update operators - `. Starting with MongoDB 4.2, an `aggregation - pipeline `_ + `. You can also pass an :manual:`aggregation + pipeline ` can be passed as this parameter. ``$options`` : array @@ -72,7 +72,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -80,7 +80,7 @@ Parameters - string|array|object - .. include:: /includes/extracts/common-option-hint.rst - .. include:: /includes/extracts/option-requires-4.2.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.6 diff --git a/source/reference/method/MongoDBCollection-watch.txt b/source/reference/method/MongoDBCollection-watch.txt index 6510930b..90223dd3 100644 --- a/source/reference/method/MongoDBCollection-watch.txt +++ b/source/reference/method/MongoDBCollection-watch.txt @@ -60,15 +60,14 @@ Parameters - array|object - .. include:: /includes/extracts/common-option-collation.rst - Starting in MongoDB 4.2, defaults to simple binary comparison if - omitted. In earlier versions, change streams opened on a single - collection would inherit the collection's default collation. + This option defaults to simple binary comparison if + omitted. * - comment - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBDatabase-aggregate.txt b/source/reference/method/MongoDBDatabase-aggregate.txt index 72dfc7b2..533495c9 100644 --- a/source/reference/method/MongoDBDatabase-aggregate.txt +++ b/source/reference/method/MongoDBDatabase-aggregate.txt @@ -88,8 +88,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - The comment can be any valid BSON type for server versions 4.4 and - above. Earlier server versions only support string values. + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst * - explain - boolean diff --git a/source/reference/method/MongoDBDatabase-createCollection.txt b/source/reference/method/MongoDBDatabase-createCollection.txt index f78d61eb..481c2a5a 100644 --- a/source/reference/method/MongoDBDatabase-createCollection.txt +++ b/source/reference/method/MongoDBDatabase-createCollection.txt @@ -79,7 +79,7 @@ Parameters :manual:`create ` command documentation for more information. - .. include:: /includes/extracts/option-requires-5.3.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -91,7 +91,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 @@ -113,7 +113,7 @@ Parameters the :manual:`create ` command documentation for more information. - .. include:: /includes/extracts/option-requires-5.0.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.9 @@ -191,7 +191,7 @@ Parameters the :manual:`create ` command documentation for supported options. - .. include:: /includes/extracts/option-requires-5.0.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.9 diff --git a/source/reference/method/MongoDBDatabase-drop.txt b/source/reference/method/MongoDBDatabase-drop.txt index 18ece835..651a0584 100644 --- a/source/reference/method/MongoDBDatabase-drop.txt +++ b/source/reference/method/MongoDBDatabase-drop.txt @@ -37,7 +37,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBDatabase-dropCollection.txt b/source/reference/method/MongoDBDatabase-dropCollection.txt index 5721509e..97ef7839 100644 --- a/source/reference/method/MongoDBDatabase-dropCollection.txt +++ b/source/reference/method/MongoDBDatabase-dropCollection.txt @@ -43,7 +43,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBDatabase-listCollectionNames.txt b/source/reference/method/MongoDBDatabase-listCollectionNames.txt index b13bb84e..682c9223 100644 --- a/source/reference/method/MongoDBDatabase-listCollectionNames.txt +++ b/source/reference/method/MongoDBDatabase-listCollectionNames.txt @@ -43,15 +43,13 @@ Parameters the :manual:`listCollections ` command documentation. - For servers < 4.0, this option is ignored. - .. versionadded:: 1.12 * - comment - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBDatabase-listCollections.txt b/source/reference/method/MongoDBDatabase-listCollections.txt index cad71e2c..8f33aedf 100644 --- a/source/reference/method/MongoDBDatabase-listCollections.txt +++ b/source/reference/method/MongoDBDatabase-listCollections.txt @@ -40,15 +40,13 @@ Parameters the :manual:`listCollections ` command documentation. - For servers < 4.0, this option is ignored. - .. versionadded:: 1.12 * - comment - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBDatabase-modifyCollection.txt b/source/reference/method/MongoDBDatabase-modifyCollection.txt index 4a080c4e..144eb9a5 100644 --- a/source/reference/method/MongoDBDatabase-modifyCollection.txt +++ b/source/reference/method/MongoDBDatabase-modifyCollection.txt @@ -51,7 +51,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBDatabase-renameCollection.txt b/source/reference/method/MongoDBDatabase-renameCollection.txt index 87e38532..a6b0b904 100644 --- a/source/reference/method/MongoDBDatabase-renameCollection.txt +++ b/source/reference/method/MongoDBDatabase-renameCollection.txt @@ -56,7 +56,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/option-requires-4.4.rst + .. include:: /includes/extracts/option-requires-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBDatabase-watch.txt b/source/reference/method/MongoDBDatabase-watch.txt index 68f0d273..e93c9c3f 100644 --- a/source/reference/method/MongoDBDatabase-watch.txt +++ b/source/reference/method/MongoDBDatabase-watch.txt @@ -61,7 +61,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst .. versionadded:: 1.13 diff --git a/source/reference/method/MongoDBGridFSBucket-find.txt b/source/reference/method/MongoDBGridFSBucket-find.txt index 3ceac0a9..653848b0 100644 --- a/source/reference/method/MongoDBGridFSBucket-find.txt +++ b/source/reference/method/MongoDBGridFSBucket-find.txt @@ -76,7 +76,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst * - cursorType - integer diff --git a/source/reference/method/MongoDBGridFSBucket-findOne.txt b/source/reference/method/MongoDBGridFSBucket-findOne.txt index 54f22dea..6b564461 100644 --- a/source/reference/method/MongoDBGridFSBucket-findOne.txt +++ b/source/reference/method/MongoDBGridFSBucket-findOne.txt @@ -66,7 +66,7 @@ Parameters - mixed - .. include:: /includes/extracts/common-option-comment.rst - .. include:: /includes/extracts/common-option-comment-string-before-4.4.rst + .. include:: /includes/extracts/common-option-comment-string-before-6.0.rst * - hint - string|array|object diff --git a/source/security.txt b/source/security.txt index 249ae009..310321a9 100644 --- a/source/security.txt +++ b/source/security.txt @@ -80,35 +80,6 @@ authentication mechanism: To learn more about SCRAM-SHA-256 authentication, see :ref:`php-scram-sha-256` in the Authentication guide. -SCRAM-SHA-1 ------------ - -The following code shows how to authenticate by using the ``SCRAM-SHA-1`` -authentication mechanism: - -.. tabs:: - - .. tab:: MongoDB\\Client - :tabid: Client - - .. literalinclude:: /includes/authentication.php - :language: php - :dedent: - :start-after: start-scram-sha-1-client - :end-before: end-scram-sha-1-client - - .. tab:: Connection URI - :tabid: connectionstring - - .. literalinclude:: /includes/authentication.php - :language: php - :dedent: - :start-after: start-scram-sha-1-uri - :end-before: end-scram-sha-1-uri - -To learn more about SCRAM-SHA-1 authentication, see :ref:`php-scram-sha-1` in -the Authentication guide. - MONGODB X.509 ------------- diff --git a/source/security/authentication.txt b/source/security/authentication.txt index f4be9f13..eb8c9770 100644 --- a/source/security/authentication.txt +++ b/source/security/authentication.txt @@ -42,8 +42,7 @@ SCRAM-SHA-256 ------------- SCRAM-SHA-256, as defined by `RFC 7677 `__, -is the default authentication mechanism on MongoDB deployments -running {+mdb-server+} v4.0 or later. +is the default authentication mechanism on MongoDB deployments. To authenticate with this mechanism, set the following connection options: @@ -54,8 +53,7 @@ To authenticate with this mechanism, set the following connection options: - ``authSource``: The MongoDB database to authenticate against. By default, the {+php-library+} authenticates against the database in the connection URI, if you include one. If you don't, it authenticates against the ``admin`` database. -- ``authMechanism``: Set to ``'SCRAM-SHA-256'``. When connected to {+mdb-server+} v4.0, - setting ``authMechanism`` is optional. +- ``authMechanism``: Set to ``'SCRAM-SHA-256'``. You can set these options in two ways: by passing an options array to the ``MongoDB\Client`` constructor or through parameters in your connection URI. @@ -80,24 +78,6 @@ You can set these options in two ways: by passing an options array to the :start-after: start-scram-sha-256-uri :end-before: end-scram-sha-256-uri -.. _php-scram-sha-1: - -SCRAM-SHA-1 ------------ - -SCRAM-SHA-1, as defined by `RFC 5802 `__, -is the default authentication mechanism on MongoDB deployments -running {+mdb-server+} v3.6. - -.. note:: - - {+php-library+} v1.20 drops support for {+mdb-server+} v3.6. When using v1.20+ of - the library, all supported server versions default to the SCRAM-SHA-256 authentication - mechanism. - -To authenticate with this mechanism, use the same syntax as the :ref:`php-scram-sha-256`, -but change the value of the ``authMechanism`` option to ``'SCRAM-SHA-1'``. - .. _php-mongodb-x509: MONGODB-X509 @@ -144,7 +124,7 @@ MONGODB-AWS .. important:: - The MONGODB-AWS authentication mechanism requires {+mdb-server+} v4.4 or later. + The MONGODB-AWS authentication mechanism requires {+mdb-server+} v6.0 or later. The MONGODB-AWS authentication mechanism uses AWS IAM (Amazon Web Services Identity and Access Management) or AWS Lambda credentials to authenticate your application. To use this @@ -386,4 +366,4 @@ in the library API documentation. To view a full list of URI options that you can pass to a ``MongoDB\Client``, see the :php:`MongoDB\Driver\Manager::__construct parameters ` -in the extension API documentation. \ No newline at end of file +in the extension API documentation. diff --git a/source/security/in-use-encryption.txt b/source/security/in-use-encryption.txt index adc6e72c..03564a94 100644 --- a/source/security/in-use-encryption.txt +++ b/source/security/in-use-encryption.txt @@ -73,12 +73,13 @@ Encryption ` in the {+mdb-server+} manual. Client-side Field Level Encryption ---------------------------------- -Client-side Field Level Encryption (CSFLE) was introduced in {+mdb-server+} -version 4.2 and supports searching encrypted fields for equality. -CSFLE differs from Queryable Encryption in that you can select either a -deterministic or random encryption algorithm to encrypt fields. You can only -query encrypted fields that use a deterministic encryption algorithm when -using CSFLE. When you use a random encryption algorithm to encrypt +Client-side Field Level Encryption (CSFLE) supports searching encrypted +fields for equality. CSFLE differs from Queryable Encryption in that you +can select either a deterministic or random encryption algorithm to +encrypt fields. You can only query encrypted fields that use a +deterministic encryption algorithm when using CSFLE. + +When you use a random encryption algorithm to encrypt fields in CSFLE, they can be decrypted, but you cannot perform equality queries on those fields. When you use Queryable Encryption, you cannot specify the encryption algorithm, but you can query all encrypted @@ -98,4 +99,4 @@ low cardinality is susceptible to code breaking by frequency analysis. - :wikipedia:`Frequency Analysis ` To learn more about CSFLE, see :manual:`CSFLE ` in the {+mdb-server+} -manual. \ No newline at end of file +manual. diff --git a/source/tutorial/encryption.txt b/source/tutorial/encryption.txt index 70b99df3..821afd4c 100644 --- a/source/tutorial/encryption.txt +++ b/source/tutorial/encryption.txt @@ -130,7 +130,6 @@ alternative name using the ``keyAltName`` option instead of ``keyId``. Client-Side Field Level Encryption ---------------------------------- -Introduced in MongoDB 4.2, :manual:`Client-Side Field Level Encryption ` allows an application to encrypt specific data fields in addition to pre-existing MongoDB encryption features such as @@ -149,8 +148,9 @@ Automatic Client-Side Field Level Encryption .. note:: - Automatic client-side field level encryption requires MongoDB 4.2+ Enterprise - or a MongoDB 4.2+ Atlas cluster. + To use the automatic client-side field level encryption feature, you + must connect an Enterprise or Atlas cluster running MongoDB 6.0 or + later. Automatic client-side field level encryption is enabled by creating a client and specifying the ``autoEncryption`` @@ -166,7 +166,7 @@ object to create a new encryption key. Server-Side Field Level Encryption Enforcement ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The MongoDB 4.2+ server supports using schema validation to enforce encryption +You can use schema validation to enforce encryption of specific fields in a collection. This schema validation will prevent an application from inserting unencrypted values for any fields marked with the :manual:`"encrypt" schema keyword `. @@ -218,8 +218,7 @@ Explicit encryption is a MongoDB community feature and does not use Explicit Encryption with Automatic Decryption ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Although automatic encryption requires MongoDB 4.2+ enterprise or a MongoDB 4.2+ -Atlas cluster, automatic *decryption* is supported for all users. To configure +Automatic *decryption* is supported for all users. To configure automatic decryption without automatic encryption set the ``bypassAutoEncryption`` auto encryption :php:`driver option ` From 91262b5e9fed49ce5e1204780402cd47037dbfaa Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 22 May 2025 13:26:39 -0400 Subject: [PATCH 2/2] consolidate compat table rows --- source/includes/mongodb-compatibility-table-php.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/includes/mongodb-compatibility-table-php.rst b/source/includes/mongodb-compatibility-table-php.rst index 7c9c978e..ae7fd69a 100644 --- a/source/includes/mongodb-compatibility-table-php.rst +++ b/source/includes/mongodb-compatibility-table-php.rst @@ -8,12 +8,7 @@ - MongoDB 7.0 - MongoDB 6.0 - * - ext + lib 1.21 to 2.0 - - ✓ - - ✓ - - ✓ - - * - ext + lib 1.20 + * - ext + lib 1.20 to 2.0 - ✓ - ✓ - ✓