mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
9f44eca6b6
Closes GH-5860 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
18 lines
392 B
PHP
18 lines
392 B
PHP
--TEST--
|
|
openssl_x509_free() tests
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("openssl")) print "skip"; ?>
|
|
--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 in %s on line %d
|
|
object(OpenSSLCertificate)#1 (0) {
|
|
}
|