php8.5
Home/ Manual/ openssl / functions/ openssl_x509_free

openssl_x509_free

PHP function Deprecated as of PHP 8.0.0 Edit on GitHub ✎

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

Free certificate resource

Function-8-0-0

Description

openssl_x509_free(OpenSSLCertificate $certificate): void

0-dead-function

openssl_x509_free() frees the certificate associated with the specified certificate resource from memory.

Parameters

certificate

Return Values

Void

Changelog

VersionDescription
8.0.0This function is now deprecated as it doesn't have an effect anymore.
8.0.0certificate accepts an OpenSSLCertificate instance now; previously, a Resource of type OpenSSL X.509 was accepted.

Source: reference/openssl/functions/openssl-x509-free.xml · from the official PHP manual (php/doc-en)