Skip to content
New issue

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

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

Already on GitHub? # to your account

php opcache.preload won't work because of conditional functions #181

Open
cjprinse opened this issue Jul 14, 2022 · 2 comments
Open

php opcache.preload won't work because of conditional functions #181

cjprinse opened this issue Jul 14, 2022 · 2 comments

Comments

@cjprinse
Copy link

I'm hitting this "bug" in php 7.4

https://bugs.php.net/bug.php?id=80815

Because of the functions in the Stub files of sodium are conditional. Preload won't work.

Fatal error: Cannot redeclare Sodium\crypto_aead_aes256gcm_is_available() (previously declared in /app/vendor/paragonie/halite/stub/Sodium.stub.php:73) in /app/vendor/paragonie/halite/stub/Sodium.stub.php on line 70
@paragonie-security
Copy link
Contributor

Interesting. Can you install ext-sodium (and use the newer APIs in PHP 7.2) to get around this problem?

@cjprinse
Copy link
Author

We are using php 7.4 with ext-sodium enabled

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

No branches or pull requests

2 participants