PHP 8 deprecates openssl_free_key (actually openssl_pkey_free which it aliases) and automatically destroys the key instance when it goes out of scope.
(PHP 4 >= 4.2.0, PHP 5, PHP 7)
openssl_pkey_free — Libère une clé privée
$key
) : voidLibère une clé privée créée par la fonction openssl_pkey_new().
key
Ressource représentant la clé.
Aucune valeur n'est retournée.
PHP 8 deprecates openssl_free_key (actually openssl_pkey_free which it aliases) and automatically destroys the key instance when it goes out of scope.