Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[dev] Horde_Mongo, PHP 7 and mongodb extension

5 views
Skip to first unread message

Remi Collet

unread,
Jun 15, 2016, 11:51:42 AM6/15/16
to
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.

signature.asc

Jan Schneider

unread,
Jun 15, 2016, 12:01:07 PM6/15/16
to

Zitat von Remi Collet <re...@fedoraproject.org>:
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: dev-uns...@lists.horde.org

Remi Collet

unread,
Jun 15, 2016, 12:40:01 PM6/15/16
to
Le 15/06/2016 à 18:00, Jan Schneider a écrit :
>
> 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.

So => https://github.com/horde/horde/pull/194

Remi.


signature.asc
0 new messages