summaryrefslogtreecommitdiff
path: root/ext/phar
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-05-04 11:40:49 +0200
committerAnatoliy Belsky <ab@php.net>2012-05-04 11:40:49 +0200
commit8a10259642f05b11f5fefa1399605a08957f5e59 (patch)
treea90c34a3d675864ac31d7cdb44216b158cc40c6a /ext/phar
parent6c12252790cdd75bd79335013badc657fd78af1a (diff)
downloadphp-git-8a10259642f05b11f5fefa1399605a08957f5e59.tar.gz
Fix bug #61906 ext\phar\tests\zip\phar_setsignaturealgo2.phpt fails
Diffstat (limited to 'ext/phar')
-rw-r--r--ext/phar/tests/zip/phar_setsignaturealgo2.phpt6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/phar/tests/zip/phar_setsignaturealgo2.phpt b/ext/phar/tests/zip/phar_setsignaturealgo2.phpt
index 372f7ddc8e..7d3730c416 100644
--- a/ext/phar/tests/zip/phar_setsignaturealgo2.phpt
+++ b/ext/phar/tests/zip/phar_setsignaturealgo2.phpt
@@ -49,8 +49,10 @@ var_dump($p->getSignature());
echo $e->getMessage();
}
try {
-$keys=openssl_pkey_new();
-openssl_pkey_export($keys, $privkey);
+$config = dirname(__FILE__) . '/../files/openssl.cnf';
+$config_arg = array('config' => $config);
+$keys=openssl_pkey_new($config_arg);
+openssl_pkey_export($keys, $privkey, NULL, $config_arg);
$pubkey=openssl_pkey_get_details($keys);
$p->setSignatureAlgorithm(Phar::OPENSSL, $privkey);