com php-src: Fix bug #61906 ext\phar\tests\zip\phar_s etsignaturealgo2.phpt fails: ext/phar/tests/zip/phar _setsignaturealgo2.phpt

From: Date: Fri, 04 May 2012 09:40:49 +0000
Subject: com php-src: Fix bug #61906 ext\phar\tests\zip\phar_s etsignaturealgo2.phpt fails: ext/phar/tests/zip/phar _setsignaturealgo2.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-68940@lists.php.net to get a copy of this message
Commit: 8a10259642f05b11f5fefa1399605a08957f5e59 Author: Anatoliy Belsky <ab@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);

« previous php.cvs (#68940) next »