For example the part '' is replaced with NULL in our test case. We don't know if any more is getting replaced or changed. The array is changed in a way that 'static' contents seem to be removed. Not calling ->find() does not produce the error.Īlso opcache need to be enabled for the file where the query array is defined. We have only seen it changing the array when it has been sent to mongodb. This only happens when the array is sent to the mongodb find operation (other operations not tested). We found some strange behaviour where queries sent to mongodb don't match what we intended to send.Īfter digging deeper we found that under load with multiple requests handeled concurrently by php-fpm, the system randomly starts changing the php array (!). Documentation for contributing to this project may be found in CONTRIBUTING.md. Developmentĭevelopment is tracked in the PHPLIB project in MongoDB's JIRA. If you've identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions in Create a Vulnerability Report. Extension-related issues should be reported in the PHPC project.įor general questions and support requests, please use one of MongoDB's Technical Support channels. Issues pertaining to the library should be reported in the PHPLIB project in MongoDB's JIRA. $ echo "extension=mongodb.so" > `php -ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`Īdditional installation instructions for the extension may be found in its PHP.net documentation. Since this library is a high-level abstraction for the driver, it also requires that the mongodb extension be installed: $ pecl install mongodb The preferred method of installing this library is with Composer by running the following from your project root: $ composer require mongodb/mongodbĪdditional installation instructions may be found in the library documentation. ![]() ![]() If you are developing an application with MongoDB, you should consider using this library, or another high-level abstraction, instead of the extension alone.Īdditional information about the architecture of this library and the mongodb extension may be found in Architecture Overview. It contains abstractions for client, database, and collection objects, and provides methods for CRUD operations and common commands (e.g. While the extension provides a limited API for executing commands, queries, and write operations, this library implements an API similar to that of the legacy PHP driver. This library provides a high-level abstraction around the lower-level PHP driver ( mongodb extension).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |