From 8a10259642f05b11f5fefa1399605a08957f5e59 Mon Sep 17 00:00:00 2001 From: Anatoliy Belsky Date: Fri, 4 May 2012 11:40:49 +0200 Subject: Fix bug #61906 ext\phar\tests\zip\phar_setsignaturealgo2.phpt fails --- ext/phar/tests/zip/phar_setsignaturealgo2.phpt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/phar') 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); -- cgit v1.2.1