Php-amqplib: The dependency phpseclib needs an update to version 3.*

Created on 21 Jan 2021  路  5Comments  路  Source: php-amqplib/php-amqplib

Description

The dependency phpseclib needs an update to version 3.*

https://github.com/phpseclib/phpseclib/blob/master/CHANGELOG.md

It's not critical, but it's blocking updating other projects which want to use the version 3.* as composer does not allow to install the version 2.* and 3.*at the same time.

Most helpful comment

@ramunasd you could also support both versions :)

As you are only using this BigInteger class from this dependency you will not have any troubles I guess.

Just use class_exists to check which version was installed phpseclib3Math\BigInteger or phpseclibMath\BigInteger.

All 5 comments

As an alternative to upgrading to version 3.* it's also possible to use https://github.com/phpseclib/phpseclib2_compat .

Looking from another side, higher requirement on our side would enforce everyone to upgrade even if they don't want to? @r-simlinger

@ramunasd better to force to upgrade than to force to use outdated software...

@ramunasd you could also support both versions :)

As you are only using this BigInteger class from this dependency you will not have any troubles I guess.

Just use class_exists to check which version was installed phpseclib3Math\BigInteger or phpseclibMath\BigInteger.

@r-simlinger How to do it in phpseclib3.*

Was this page helpful?
0 / 5 - 0 ratings