Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

ext-sodium PHP7.4 #536

Open
SundayPlayer opened this issue Jul 9, 2021 · 1 comment
Open

ext-sodium PHP7.4 #536

SundayPlayer opened this issue Jul 9, 2021 · 1 comment

Comments

@SundayPlayer
Copy link

I use a dependency that require ext-sodium: * .
But in the PHP7.4 environment compiler tell me that this library is missing from the system.

Step to reproduce:

  • require "lcobucci/jwt": "^3.4|^4.0"
  • deploy the project on a PHP7.4 standard environement
  • you get the composer error
@henryallsuch
Copy link

I've been having the same issue here is what I have found: lib sodium is no longer a PECL extension, it's a compile time option so has to be enabled when php is compiled.

lcobucci/jwt#717 (comment)

Looks like the option has been added for 7.2 but that would not work for 7.3 or 7.4

if [ "${SHORT_VERSION}" == "72" ]; then

Looks like #533 they have included support for 7.4 and 8.0, though that would break 7.2 & 7.3 support.

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

No branches or pull requests

2 participants