1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/openssl/tests/openssl_x509_free_basic.phpt
2024-07-10 16:47:31 +02:00

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) {
}