mirror of
https://github.com/php/php-src.git
synced 2024-12-12 11:23:53 +08:00
Fix clean up for openssl_pkcs12_export_to_file_basic
This commit is contained in:
parent
314bef5d03
commit
34ed75fab7
@ -16,7 +16,7 @@ $cert_res = openssl_x509_read($cert);
|
||||
$priv_res = openssl_pkey_get_private($priv);
|
||||
$pass = "test";
|
||||
$invalid = "";
|
||||
$invalid_path = "file:///tmp/php";
|
||||
$invalid_path = dirname(__FILE__) . "/invalid_path";
|
||||
$opts = [];
|
||||
|
||||
var_dump(openssl_pkcs12_export_to_file($cert, $pkcsfile, $priv, $pass));
|
||||
@ -34,6 +34,7 @@ var_dump(openssl_pkcs12_export_to_file($priv_res, $pkcsfile, $cert_res, $pass));
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
$pkcsfile = dirname(__FILE__) . "/openssl_pkcs12_export_to_file__pkcsfile.tmp";
|
||||
if (file_exists($pkcsfile)) {
|
||||
unlink($pkcsfile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user