|
| 1 | +.. php-upgrade: |
| 2 | + |
| 3 | +======================= |
| 4 | +Upgrade Driver Versions |
| 5 | +======================= |
| 6 | + |
| 7 | +.. contents:: On this page |
| 8 | + :local: |
| 9 | + :backlinks: none |
| 10 | + :depth: 1 |
| 11 | + :class: singlecol |
| 12 | + |
| 13 | +.. facet:: |
| 14 | + :name: genre |
| 15 | + :values: reference |
| 16 | + |
| 17 | +.. meta:: |
| 18 | + :keywords: compatibility, backwards compatibility |
| 19 | + |
| 20 | +Overview |
| 21 | +-------- |
| 22 | + |
| 23 | +This page describes the changes you must make to your application |
| 24 | +when you upgrade to a new version of the {+driver-short+}. |
| 25 | + |
| 26 | +This page describes the changes you must make to your application |
| 27 | +when you upgrade to a new version of the {+driver-short+}. |
| 28 | + |
| 29 | +Before you upgrade, perform the following actions: |
| 30 | + |
| 31 | +- Ensure the new {+driver-short+} version is compatible with the {+mdb-server+} versions |
| 32 | + your application connects to and the PHP version your |
| 33 | + application compiles with. For version compatibility information, see the |
| 34 | + :ref:`{+driver-short+} Compatibility <php-compatibility>` |
| 35 | + page. |
| 36 | +- Address any breaking changes between the driver version |
| 37 | + your application is using and your planned upgrade version in the |
| 38 | + :ref:`Breaking Changes <php-breaking-changes>` section. |
| 39 | + |
| 40 | +.. tip:: |
| 41 | + |
| 42 | + To ensure compatibility across {+mdb-server+} versions when |
| 43 | + upgrading driver versions, use the :ref:`{+stable-api+} <php-stable-api>`. |
| 44 | + |
| 45 | +.. _php-breaking-changes: |
| 46 | + |
| 47 | +Breaking Changes |
| 48 | +---------------- |
| 49 | + |
| 50 | +A breaking change is a change of a convention or a behavior starting in a specific |
| 51 | +version of the driver. This type of change may prevent your application from working |
| 52 | +properly if not addressed before upgrading the driver. |
| 53 | + |
| 54 | +The breaking changes in this section are categorized by the driver version that introduced |
| 55 | +them. When upgrading driver versions, address all the breaking changes between the current |
| 56 | +and upgrade versions. |
| 57 | + |
| 58 | +For more information on release changes, see the release notes and associated |
| 59 | +JIRA tickets for each release on `GitHub <https://github.com/mongodb/mongo-php-library/releases>`__. |
| 60 | + |
| 61 | +Version 1.20 Breaking Changes |
| 62 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 63 | + |
| 64 | +This driver version introduces the following breaking changes: |
| 65 | + |
| 66 | +- Drops support for {+mdb-server+} 3.6. |
| 67 | + |
| 68 | +- Deprecate iterators for database, collection, and index enumeration. |
| 69 | + |
| 70 | +Version 1.18 Breaking Changes |
| 71 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 72 | + |
| 73 | +This driver version introduces the following breaking changes: |
| 74 | + |
| 75 | +- Deprecate setting ``disableMD5`` to ``false`` when instantiating a Bucket due to |
| 76 | + deprecated MD5 encoding. The default value for the setting is now ``true``. |
| 77 | + |
| 78 | +Version 1.17 Breaking Changes |
| 79 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 80 | + |
| 81 | +This driver version introduces the following breaking changes: |
| 82 | + |
| 83 | +- Upgrades the ``mongodb`` extension requirement to 1.17.0. |
| 84 | + |
| 85 | +- Requires PHP 7.4 or newer. |
| 86 | + |
| 87 | +- Removes support for PHP 7.2 and 7.3. |
| 88 | + |
| 89 | +- Remove aggregate compatibility logic for {+mdb-server+} versions less than |
| 90 | + 3.6, including removing the ``useCursor`` option. |
| 91 | + |
| 92 | +Version 1.16 Breaking Changes |
| 93 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 94 | + |
| 95 | +- Upgrades the ``mongodb`` extension requirement to 1.16.0. |
| 96 | + |
| 97 | +- Deprecate ``IndexInfo::isGeoHaystack()``. ``geoHaystack`` was removed in |
| 98 | + {+mdb-server+} 5.0 and later. |
| 99 | + |
| 100 | +- Drop support for Composer 1.x. |
| 101 | + |
| 102 | +- Remove ``$server`` argument in ``Explainable::getCommandDocument``. |
| 103 | + |
| 104 | +- Remove ``getNonce`` command usage for {+mdb-server+} 6.2 and later. |
| 105 | + |
| 106 | +Version 1.15 Breaking Changes |
| 107 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 108 | + |
| 109 | +- Upgrades the ``mongodb`` extension requirement to 1.15.0. |
0 commit comments