Re: Horde_Mongo, PHP 7 and mongodb extension
Jan Schneider <[email protected]>
| Newsgroups | gmane.comp.horde.devel |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Remi Collet <[email protected]>: > 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. Mid-term I'd rather want our own Horde_Mongo library to be a wrapper for both extensions, but short-term using this adapter would be a viable solution. -- Jan Schneider The Horde Project http://www.horde.org/ -- dev mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]