We have an application running in PHP5 (Symfony 2.8 with MongoDB), but we have issues with the Mongo driver in this version, that we don't have with PHP7 and ext-mongodb. So I'm trying to migrate the project to PHP7.
Everything works fine locally, but on Bluemix we have this issue:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-mongodb ^1.2 has the wrong version (1.1.2) installed. Install or enable PHP's mongodb extension.
...
This extension and version is required by some dependencies, but I can't get it installed via composer. The dependency is explicit in the composer.json:
"require": {
"php": "7.0.*",
"ext-mongodb": "*",
...
I went to php-buildpack project, to see what is the provided version of the extension in php-buildpack 4.3.10 (which is the version currently used by Bluemix, and it's OLD!!!!), but there's no version, just a note on the extension available:
https://github.com/cloudfoundry/php-buildpack/releases/tag/v4.3.10
How can I manage to get the version 1.2.0 of ext-mongodb?
Thanks!
-b https://github.com/cloudfoundry/php-buildpack.git#v4.3.33
. - opiethehokie