[dev] Horde_Mongo, PHP 7 and mongodb extension

Remi Collet remi at fedoraproject.org
Wed Jun 15 15:16:41 UTC 2016


Hi,

Is there is any plan for Horde_Mongo and PHP 7 ?

The problem is that the Horde_Mongo_Client extends the MongoClient which
is provided by the pecl/mongo extension which will never be compatible
with PHP-7


I have run some test using https://github.com/alcaeus/mongo-php-adapter

Running the cache test suite:

$ phpunit MongoTest.php --verbose
PHPUnit 5.4.5 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.0.8RC1
Configuration:
/dev/shm/BUILD/php-horde-Horde-Cache-2.5.3/Horde_Cache-2.5.3/test/Horde/Cache/phpunit.xml

........                                          8 / 8 (100%)

Time: 466 ms, Memory: 4.00MB

OK (8 tests, 21 assertions)


So it seems to work as expected.

For now this is only a local PoC,
Would you be interested by a PR for this ?



Remi.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://lists.horde.org/archives/dev/attachments/20160615/6eb11278/attachment.bin>


More information about the dev mailing list