1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/openssl/tests/openssl_x509_free_basic.phpt
T
Máté Kocsis 9f44eca6b6 Convert resources to objects in ext/openssl
Closes GH-5860

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
2020-08-01 22:47:20 +02:00

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