diff options
Diffstat (limited to 'ext/openssl/tests/openssl_pkcs7_encrypt_basic.phpt')
-rw-r--r-- | ext/openssl/tests/openssl_pkcs7_encrypt_basic.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/tests/openssl_pkcs7_encrypt_basic.phpt b/ext/openssl/tests/openssl_pkcs7_encrypt_basic.phpt index 099596c033..ef9b25e70b 100644 --- a/ext/openssl/tests/openssl_pkcs7_encrypt_basic.phpt +++ b/ext/openssl/tests/openssl_pkcs7_encrypt_basic.phpt @@ -4,7 +4,7 @@ openssl_pkcs7_encrypt() tests <?php if (!extension_loaded("openssl")) print "skip"; ?> --FILE-- <?php -$infile = dirname(__FILE__) . "/cert.crt"; +$infile = __DIR__ . "/cert.crt"; $outfile = tempnam(sys_get_temp_dir(), "ssl"); if ($outfile === false) die("failed to get a temporary filename!"); @@ -12,8 +12,8 @@ $outfile2 = tempnam(sys_get_temp_dir(), "ssl"); if ($outfile2 === false) die("failed to get a temporary filename!"); -$single_cert = "file://" . dirname(__FILE__) . "/cert.crt"; -$privkey = "file://" . dirname(__FILE__) . "/private_rsa_1024.key"; +$single_cert = "file://" . __DIR__ . "/cert.crt"; +$privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; $multi_certs = array($single_cert, $single_cert); $assoc_headers = array("To" => "test@test", "Subject" => "testing openssl_pkcs7_encrypt()"); $headers = array("test@test", "testing openssl_pkcs7_encrypt()"); |