PHP 8.4.0 RC4 available for testing

openssl_pkey_free

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

openssl_pkey_freeLibera una clave privada

Descripción

openssl_pkey_free(resource $key): void

Esta función libera una clave privada creada por openssl_pkey_new().

Parámetros

key

Un recurso que contiene la clave.

Valores devueltos

No devuelve ningún valor.

add a note

User Contributed Notes 2 notes

up
-1
djmaze
5 years ago
This function also frees public key resources as received with openssl_pkey_get_public().

Manual above should say: "Frees a pkey resource"
up
-2
suconghou at gmail dot com
3 years ago
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.
To Top