Skip to content

Commit

Permalink
Fix clean up for openssl_pkcs12_export_to_file_basic
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Oct 22, 2017
1 parent 314bef5 commit 34ed75f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/openssl/tests/openssl_pkcs12_export_to_file_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
}
Expand Down

0 comments on commit 34ed75f

Please sign in to comment.