mongodb

MongoDB driver for PHP


The purpose of this driver is to provide exceptionally thin glue between MongoDB
and PHP, implementing only fundamental and performance-critical components
necessary to build a fully-functional MongoDB driver.

License: Apache License

Latest releases

Version Release Download
1.9.0 2020-11-25 mongodb-1.9.0.tgz
1.9.0RC1 2020-11-10 mongodb-1.9.0RC1.tgz
1.8.2 2020-11-05 mongodb-1.8.2.tgz
1.8.1 2020-10-06 mongodb-1.8.1.tgz
1.8.0 2020-07-31 mongodb-1.8.0.tgz
Show all releases

Changelog

Version Message
1.9.0 ** Epic
* [PHPC-1631] - Support PHP 8

** New Feature
* [PHPC-1691] - Iterator implementation for MongoDB\Driver\Cursor

** Bug
* [PHPC-1167] - executeBulkWrite() may leave dangling session pointer on BulkWrite object
* [PHPC-1693] - Fix MongoDB\BSON\Regex::__construct() arginfo
* [PHPC-1697] - Fix MongoDB\Driver\Command::__construct() arginfo
* [PHPC-1698] - prep_tagsets may leak in convert_to_object
* [PHPC-1700] - prep_tagsets may leak if calling method errors

** Improvement
* [PHPC-479] - Print mongoc and libbson versions during configure
* [PHPC-1699] - Ensure all zpp errors are proxied by InvalidArgumentException
* [PHPC-1704] - Improve checks for built-in PHP extensions for Windows builds
* [PHPC-1706] - AIX platforms shouldn't try linking with libresolv

** Task
* [PHPC-169] - Test read and write concern inheritance
* [PHPC-1652] - Add timestamp test with high-order bit set that's not 2^32-1
* [PHPC-1653] - Resync BSON corpus spec tests
* [PHPC-1655] - Add a bson corpus test with invalid type for $code when $scope is also present
* [PHPC-1660] - Always refer to explicit version in PECL example for non-stable release notes
* [PHPC-1689] - Allow driver to compile with PHP 8
* [PHPC-1692] - Test suite fixes for PHP 8
* [PHPC-1694] - Add PHP 8 nightly to Travis CI build matrix
* [PHPC-1695] - Add PHP 8 to AppVeyor build matrix
1.9.0RC1 ** Epic
* [PHPC-1631] - Support PHP 8

** New Feature
* [PHPC-1691] - Iterator implementation for MongoDB\Driver\Cursor

** Improvement
* [PHPC-479] - Print mongoc and libbson versions during configure
* [PHPC-1699] - Ensure all zpp errors are proxied by InvalidArgumentException
* [PHPC-1704] - Improve checks for built-in PHP extensions for Windows builds

** Bug
* [PHPC-1167] - executeBulkWrite() may leave dangling session pointer on BulkWrite object
* [PHPC-1693] - Fix MongoDB\BSON\Regex::__construct() arginfo
* [PHPC-1697] - Fix MongoDB\Driver\Command::__construct() arginfo
* [PHPC-1698] - prep_tagsets may leak in convert_to_object

** Task
* [PHPC-169] - Test read and write concern inheritance
* [PHPC-1652] - Add timestamp test with high-order bit set that's not 2^32-1
* [PHPC-1653] - Resync BSON corpus spec tests
* [PHPC-1655] - Add a bson corpus test with invalid type for $code when $scope is also present
* [PHPC-1660] - Always refer to explicit version in PECL example for non-stable release notes
* [PHPC-1689] - Allow driver to compile with PHP 8
* [PHPC-1692] - Test suite fixes for PHP 8
* [PHPC-1694] - Add PHP 8 nightly to Travis CI build matrix
* [PHPC-1695] - Add PHP 8 to AppVeyor build matrix
1.8.2 ** Bug
* [PHPC-1703] - Compilation on AIX platforms fails due to wrong detection of ss_family field
1.8.1 ** Bug
* [PHPC-1683] - Collect error labels from writeConcernErrors in libmongoc bulk write replies
* [PHPC-1687] - Session::commitTransaction() leaks reply document on success
1.8.0 ** Bug
* [PHPC-1598] - Objects with get_properties handlers should have get_gc delegate to zend_std_get_properties
* [PHPC-1648] - Ensure directConnection is validated when specified in URI options array

** Epic
* [PHPC-1547] - PHPC MongoDB 4.4 Support

** New Feature
* [PHPC-1313] - Add support for Zstandard compression
* [PHPC-1483] - MONGODB-AWS Support
* [PHPC-1484] - Support for allowDiskUse on find operations
* [PHPC-1494] - Add client metadata support for wrapping libraries
* [PHPC-1533] - OCSP Support
* [PHPC-1554] - Unify behavior around configuration for replica set discovery
* [PHPC-1561] - Allow hinting the delete command
* [PHPC-1571] - Driver support for server Hedged Reads
* [PHPC-1575] - Add URI option to disable certificate revocation checking

** Task
* [PHPC-1060] - Automate Atlas connectivity tests
* [PHPC-1131] - Do not compile php.exe for Appveyor builds
* [PHPC-1384] - Specify behavior where connection string contain auth database but no credentials
* [PHPC-1401] - Add mongodb+srv URIs to Atlas Connectivity tests
* [PHPC-1440] - Bump wire protocol version for 4.4
* [PHPC-1442] - Remove support for PHP 5.6
* [PHPC-1525] - Deprecate oplogReplay find command option from CRUD spec
* [PHPC-1616] - Remove PHP 7.1 from AppVeyor build config
* [PHPC-1621] - Bundled libmongocrypt emits compiler warning
* [PHPC-1635] - Ensure OCSP and AWS auth are tested on both 4.4 and latest

** Improvement
* [PHPC-1478] - Support shorter SCRAM conversation
* [PHPC-1510] - Expand use of error labels for RetryableWrites
* [PHPC-1530] - Make ExceededTimeLimit retryable writes error
* [PHPC-1556] - Reduce Client Time To Recovery On Topology Changes
* [PHPC-1566] - Support speculative authentication attempts in isMaster
* [PHPC-1591] - Add tests for allowed cases when authSource is given but username is not
* [PHPC-1614] - Consult SIZEOF_ZEND_LONG instead of SIZEOF_LONG
* [PHPC-1615] - Specify obj_dir when adding sources in config.w32
* [PHPC-1628] - Clarify return type for WriteConcernError and WriteError getInfo() methods
* [PHPC-1629] - Call libmongoc is_valid functions before completing WriteConcern and ReadPreference initialization
* [PHPC-1632] - Reduce default keepalive time to align with Azure defaults
Show complete changelog