mirror of
https://github.com/php/php-src.git
synced 2024-12-04 07:14:10 +08:00
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fix bug #61904 ext\phar\tests\tar\phar_setsignaturealgo2.phpt
This commit is contained in:
commit
16fdf86ea3
@ -32,9 +32,11 @@ var_dump($p->getSignature());
|
||||
echo $e->getMessage();
|
||||
}
|
||||
try {
|
||||
$config = dirname(__FILE__) . '/../files/openssl.cnf';
|
||||
$config_arg = array('config' => $config);
|
||||
$private = openssl_get_privatekey(file_get_contents(dirname(dirname(__FILE__)) . '/files/private.pem'));
|
||||
$pkey = '';
|
||||
openssl_pkey_export($private, $pkey);
|
||||
openssl_pkey_export($private, $pkey, NULL, $config_arg);
|
||||
$p->setSignatureAlgorithm(Phar::OPENSSL, $pkey);
|
||||
var_dump($p->getSignature());
|
||||
} catch (Exception $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user