Code Monkey home page Code Monkey logo

Comments (6)

terrafrost avatar terrafrost commented on August 14, 2024

That was fixed in phpseclib 2.0.7 (which was released last year):

phpseclib/phpseclib@f4b6a52

mcrypt_compat requires ~2.0. This means it requires phpseclib >=2.0 < 3.0.0. Maybe when you initially installed phpseclib the latest version was 2.0.6 or something but that is now no longer the case.

I think composer update should fix the issue for you.

from mcrypt_compat.

CraigChaffee avatar CraigChaffee commented on August 14, 2024

Thanks! I'll test it.

I confirmed the README.md instructions to run composer require phpseclib/mcrypt_compat installs v1.0.4 of phpseclib.

from mcrypt_compat.

CraigChaffee avatar CraigChaffee commented on August 14, 2024

Updating phpseclib/phpseclib to the latest one indeed fixes the issue. Thanks!

So should mcrypt_compat/composer.json:25 be "phpseclib/phpseclib": ">=2.0.7" ?

from mcrypt_compat.

terrafrost avatar terrafrost commented on August 14, 2024

I just did composer require phpseclib/mcrypt_compat in a brand new directory and it installed 2.0.10 of phpseclib/phpseclib and 1.0.4 of phpseclib/mcrypt_compat for me:

$ composer require phpseclib/mcrypt_compat
Using version ^1.0 for phpseclib/mcrypt_compat
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Installing phpseclib/phpseclib (2.0.10): Loading from cache
  - Installing phpseclib/mcrypt_compat (1.0.4): Loading from cache
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodi
um-php extension.)
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other crypto
graphic operations.)
Writing lock file
Generating autoload files

I don't see how 1.0.4 of phpseclib could be installed when composer.json says "phpseclib/phpseclib": "~2.0".

from mcrypt_compat.

CraigChaffee avatar CraigChaffee commented on August 14, 2024

I had the master branch version. Where the composer file has:
"phpseclib/phpseclib": "dev-master"

Not sure how that happened, but it's safe to assume I just did something horribly wrong. Thanks for all your help. I'll close the ticket.

from mcrypt_compat.

TomasVotruba avatar TomasVotruba commented on August 14, 2024

If you ever need to upgrade more create_function cases, Rector does it pretty well.

from mcrypt_compat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.