phpize ./configure make sudo make install
to your php.ini file.
See the PHP manual.
The tests are not available as part of the PECL package, but they are available
They use PHPUnit. To run the tests:
$ phpunit tests/MongoSuite.php
There must be a mongod instance running on port 27017 in order to run the tests.
They also assume that php.ini sets error_reporting to
E_STRICT | E_ALL.
The tests will spit out a bunch of warnings if you do not have mongo-php-driver/php on your include path, but it will just skip the tests that require that.
The tests will also attempt to create an admin user using the shell. If mongo is not on your path, you will get some output complaining about it but those tests will just be skipped.
- Came up with the idea and implemented
- Helped build the Windows extension and has provided the VC6 builds
- Created the
- Made connection code check & handle error status
MongoInt64and related php.ini options.