Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random_compat error installing with composer in PHP 7 #1571

Closed
adamjimenez opened this issue Jan 4, 2021 · 3 comments
Closed

random_compat error installing with composer in PHP 7 #1571

adamjimenez opened this issue Jan 4, 2021 · 3 comments

Comments

@adamjimenez
Copy link

I get an error when I try to install with composer:

# composer require phpseclib/phpseclib
Installation request for paragonie/random_compat (locked at v9.99.99) -> satisfiable by paragonie/random_compat[v9.99.99].

I think the composer requirements need to be tweaked.

@terrafrost
Copy link
Member

I'm not able to reproduce this. I'm running PHP 7.4.3 and Composer 2.0.8 and did composer require phpseclib/phpseclib in a new directory and got this:

./composer.json has been created
Running composer update phpseclib/phpseclib
Loading composer repositories with package information
Updating dependencies
Lock file operations: 3 installs, 0 updates, 0 removals
  - Locking paragonie/constant_time_encoding (v2.4.0)
  - Locking paragonie/random_compat (v2.0.19)
  - Locking phpseclib/phpseclib (3.0.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
  - Installing paragonie/random_compat (v2.0.19): Extracting archive
  - Installing paragonie/constant_time_encoding (v2.4.0): Extracting archive
  - Installing phpseclib/phpseclib (3.0.2): Extracting archive
3 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!

I mean, I can change it, but outside of you, I'm not aware of anyone else having this issue and I'm a little reluctant to require random_compat 9.99.99 when it 2.0.19 seems to be working fine for everyone else...

What version of PHP are you running? What version of Composer? Maybe you can post the full Composer output?

Thanks!

@adamjimenez
Copy link
Author

Thanks for looking into this. I'm using PHP 7.2.24
This issue seems to have resolved itself after upgrading other packages. Closing.

@terrafrost
Copy link
Member

Should be working better after #1585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants