-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Call to undefined function sodium_bin2base64 #665
Comments
I'll see if we can require a minimum version for |
As I feared, even though
There is no standardization around extension versioning, so composer is unaware of it. We could leverage WDYT @lcobucci ? |
Detect with function_exists() and either have an alternative implementation or send a descriptive error message.
In theory you could require extension versions in Composer. In practice they act as hidden PHP version requirements, and users are usually unable to update extensions, either because they lack the permissions or their distribution does not have them.
|
I'd add back the old implementation as a new class (legacy encoder?) and put the logic to pick the new or the legacy (or the user provided one) on the config class. Then we keep the weird stuff in the service locator. @Slamdunk how does that sound? |
Error: Call to undefined function sodium_bin2base64() in file vendor/lcobucci/jwt/src/Encoding/JoseEncoder.php on line 50 How to solve this issue? |
Either upgrade |
Released! |
After last update 4.1.0 i got error Call to undefined function sodium_bin2base64() {"exception":"[object] (Error(code: 0): Call to undefined function sodium_bin2base64() at vendor/lcobucci/jwt/src/Encoding/JoseEncoder.php:50) my php version is 7.4.13 and sodium version 1.0.13. If i change sodium version to 1.0.18 everything is fine.
The text was updated successfully, but these errors were encountered: