com php-src: Fix clean up for openssl_pkcs12_export_t o_file_basic: ext/openssl/tests/openssl_pkcs12_ export_to_file_basic.phpt
| From: | Jakub Zelenka | Date: | Sun, 22 Oct 2017 17:54:15 +0000 |
| Subject: | com php-src: Fix clean up for openssl_pkcs12_export_t o_file_basic: ext/openssl/tests/openssl_pkcs12_ export_to_file_basic.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99837@lists.php.net to get a copy of this message | ||
Commit: 34ed75fab792771c322bce8a0a365c5468e404be
Author: Jakub Zelenka <bukka@php.net> Sun, 22 Oct 2017 18:54:15 +0100
Parents: 314bef5d037ac2db7fe971b5e6a0c1852ebe66ec
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=34ed75fab792771c322bce8a0a365c5468e404be
Log:
Fix clean up for openssl_pkcs12_export_to_file_basic
Changed paths:
M ext/openssl/tests/openssl_pkcs12_export_to_file_basic.phpt
Diff:
diff --git a/ext/openssl/tests/openssl_pkcs12_export_to_file_basic.phpt
b/ext/openssl/tests/openssl_pkcs12_export_to_file_basic.phpt
index 9cd8092..a360591 100644
--- a/ext/openssl/tests/openssl_pkcs12_export_to_file_basic.phpt
+++ b/ext/openssl/tests/openssl_pkcs12_export_to_file_basic.phpt
@@ -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);
}