Skip to content

Commit 16fdf86

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fix bug #61904 ext\phar\tests\tar\phar_setsignaturealgo2.phpt
2 parents 31ab04e + 6c12252 commit 16fdf86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/phar/tests/tar/phar_setsignaturealgo2.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ var_dump($p->getSignature());
3232
echo $e->getMessage();
3333
}
3434
try {
35+
$config = dirname(__FILE__) . '/../files/openssl.cnf';
36+
$config_arg = array('config' => $config);
3537
$private = openssl_get_privatekey(file_get_contents(dirname(dirname(__FILE__)) . '/files/private.pem'));
3638
$pkey = '';
37-
openssl_pkey_export($private, $pkey);
39+
openssl_pkey_export($private, $pkey, NULL, $config_arg);
3840
$p->setSignatureAlgorithm(Phar::OPENSSL, $pkey);
3941
var_dump($p->getSignature());
4042
} catch (Exception $e) {

0 commit comments

Comments
 (0)