The PHP team is happy to announce that the first release candidate for version 1.9.0 of the mongodb PHP extension is now available on PECL.
This release makes the extension compatible with PHP 8.
This release also ensures that all argument errors are correctly exposed as
MongoDB\Driver\Exception\InvalidArgumentException on PHP 7. PHP 8 handles argument checks differently, so extra arguments or wrong types will trigger built-in errors.
A complete list of resolved issues in this release may be found at: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=30258
We would appreciate any feedback you might have on the project:
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-1.9.0RC1
or update with:
pecl upgrade mongodb-1.9.0RC1
Windows binaries are available on PECL: