Commit: 8a10259642f05b11f5fefa1399605a08957f5e59 Author: Anatoliy Belsky <a...@php.net> Fri, 4 May 2012 11:40:49 +0200 Parents: 6c12252790cdd75bd79335013badc657fd78af1a Branches: PHP-5.3 PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8a10259642f05b11f5fefa1399605a08957f5e59 Log: Fix bug #61906 ext\phar\tests\zip\phar_setsignaturealgo2.phpt fails Bugs: https://bugs.php.net/61906 Changed paths: M ext/phar/tests/zip/phar_setsignaturealgo2.phpt Diff: diff --git a/ext/phar/tests/zip/phar_setsignaturealgo2.phpt b/ext/phar/tests/zip/phar_setsignaturealgo2.phpt index 372f7dd..7d3730c 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); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php