mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Co-authored-by: Gina Peter Banyard <girgias@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
17 lines
412 B
PHP
17 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) {
|
|
}
|