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

openssl_free_key() is deprecated in PHP8 #178

Open
stronk7 opened this issue Jan 10, 2022 · 0 comments
Open

openssl_free_key() is deprecated in PHP8 #178

stronk7 opened this issue Jan 10, 2022 · 0 comments

Comments

@stronk7
Copy link

stronk7 commented Jan 10, 2022

From the php80 release notes:

. The openssl_x509_free() function is deprecated and no longer has an effect,
instead the OpenSSLCertificate instance is automatically destroyed if it is no
longer referenced.
. The openssl_pkey_free() (and its alias openssl_free_key)
function is deprecated and no longer has an effect,
instead the OpenSSLAsymmetricKey instance is automatically destroyed if it is no
longer referenced.

And there is a case of openssl_free_key() @ S3.php

Maybe it should be replaced to something like:

if (PHP_MAJOR_VERSION < 8) {
    openssl_free_key(self::$__signingKeyResource);
}
self::$__signingKeyResource = null;

Ciao :-)

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

1 participant