mirror of
https://github.com/php/php-src.git
synced 2024-12-26 02:10:46 +08:00
6426420f61
* PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
14 lines
313 B
PHP
14 lines
313 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--
|
|
resource(%d) of type (OpenSSL X.509)
|
|
resource(%d) of type (Unknown)
|