diff options
author | Anatoliy Belsky <ab@php.net> | 2012-05-04 11:40:49 +0200 |
---|---|---|
committer | Anatoliy Belsky <ab@php.net> | 2012-05-04 11:40:49 +0200 |
commit | 8a10259642f05b11f5fefa1399605a08957f5e59 (patch) | |
tree | a90c34a3d675864ac31d7cdb44216b158cc40c6a /ext/phar | |
parent | 6c12252790cdd75bd79335013badc657fd78af1a (diff) | |
download | php-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.phpt | 6 |
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); |