mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Co-authored-by: Gina Peter Banyard <girgias@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
18 lines
412 B
PHP
18 lines
412 B
PHP
--TEST--
|
|
openssl_x509_free() tests
|
|
--EXTENSIONS--
|
|
openssl
|
|
--FILE--
|
|
<?php
|
|
var_dump($res = openssl_x509_read("file://" . __DIR__ . "/cert.crt"));
|
|
openssl_x509_free($res);
|
|
var_dump($res);
|
|
?>
|
|
--EXPECTF--
|
|
object(OpenSSLCertificate)#1 (0) {
|
|
}
|
|
|
|
Deprecated: Function openssl_x509_free() is deprecated since 8.0, as OpenSSLCertificate objects are freed automatically in %s on line %d
|
|
object(OpenSSLCertificate)#1 (0) {
|
|
}
|