Topic: Old versions of php-pecl-mongodb disappeared

Hi.

I have an old version of php-pecl-mongodb installed on my servers. (I can't upgrade until I've also upgraded the mongodb server).

Anyhow, version 1.4.3 which I'm running seems to have disappeared from the repo. 1.el7.remi.7.2.

I have successfully installed this version from the php72 repo on several servers, but can no longer install it on new servers.

Running this:

    yum --enablerepo=remi-php72 install php-pecl-mongodb-1.4.3

Gives:

  No package php72-php-pecl-mongodb-1.4.3 available.

Does anyone know how can access the old version?

Re: Old versions of php-pecl-mongodb disappeared

You have to download old packages from the online archive:
http://rpms.remirepo.net/store/php/pecl/mongodb/

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Old versions of php-pecl-mongodb disappeared

Thanks Remi.

Am I right in assuming I must maintain this RPM in a local repository now? As opposed to somehow making it available to the original remi-php72 repo that it was installed from.

Re: Old versions of php-pecl-mongodb disappeared

> Am I right in assuming I must maintain this RPM in a local repository now?

Indeed, the online repository only have 2 versions

BTW, according to semver 1.5 is compatible with 1.4.
When upstream break API (major version), I usually provide a new package (ex php-pecl-redis and php-pecl-redis4)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Old versions of php-pecl-mongodb disappeared

Thanks again, I have it working in a local repo.

Regarding versioning. I'm sure the upgrade would be compatible with code written for 1.4, but the issue is that 1.5 dropped support for Mongo DB server version 2.6 - which is very old, but which I'm stuck on.

Ref: https://docs.mongodb.com/ecosystem/driv … patibility

6 (edited by kethrine10 2019-02-13 07:59:50)

Re: Old versions of php-pecl-mongodb disappeared

If your system has multiple version of PHP installed (e.g. macOS default and » XAMPP), note that each version of PHP has its own phpize command and php.ini file.

By default, the driver will use bundled versions of » libbson and » libmongoc and attempt to configure them on its own. If libbson and libmongoc are already installed as system libraries, you can instruct the driver to utilize them by specifying --with-libbson=yes --with--libmongoc=yes as arguments to configure.

MongoDB Tutorial