1--TEST-- 2openssl_x509_free() tests 3--SKIPIF-- 4<?php if (!extension_loaded("openssl")) print "skip"; ?> 5--FILE-- 6<?php 7var_dump($res = openssl_x509_read("file://" . dirname(__FILE__) . "/cert.crt")); 8openssl_x509_free($res); 9var_dump($res); 10openssl_x509_free(false); 11?> 12--EXPECTF-- 13resource(%d) of type (OpenSSL X.509) 14resource(%d) of type (Unknown) 15 16Warning: openssl_x509_free() expects parameter 1 to be resource, boolean given in %s on line %d 17