[dev] Horde_Mongo, PHP 7 and mongodb extension

Jan Schneider jan at horde.org
Wed Jun 15 16:00:40 UTC 2016


Zitat von Remi Collet <remi at fedoraproject.org>:

> 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/



More information about the dev mailing list