Skip to content

Commit 56ac0e7

Browse files
committed
Merge branch 'PHP-5.4'
* PHP-5.4: Fix bug #61906 ext\phar\tests\zip\phar_setsignaturealgo2.phpt fails
2 parents 7388c08 + f5936cc commit 56ac0e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/phar/tests/zip/phar_setsignaturealgo2.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ var_dump($p->getSignature());
4949
echo $e->getMessage();
5050
}
5151
try {
52-
$keys=openssl_pkey_new();
53-
openssl_pkey_export($keys, $privkey);
52+
$config = dirname(__FILE__) . '/../files/openssl.cnf';
53+
$config_arg = array('config' => $config);
54+
$keys=openssl_pkey_new($config_arg);
55+
openssl_pkey_export($keys, $privkey, NULL, $config_arg);
5456
$pubkey=openssl_pkey_get_details($keys);
5557
$p->setSignatureAlgorithm(Phar::OPENSSL, $privkey);
5658

0 commit comments

Comments
 (0)