com php-src: Fix broken test: ext/openssl/tests/bug64802.phpt

From: Date: Thu, 05 Mar 2015 05:37:07 +0000
Subject: com php-src: Fix broken test: ext/openssl/tests/bug64802.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85232@lists.php.net to get a copy of this message
Commit: ca766e078762e0ae6c801573e11f031c5371dadb Author: Daniel Lowrey <rdlowrey@php.net> Wed, 4 Mar 2015 22:37:07 -0700 Parents: 241f3c34b89ab55432d5af3fd1e4217540e161a3 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ca766e078762e0ae6c801573e11f031c5371dadb Log: Fix broken test Changed paths: M ext/openssl/tests/bug64802.phpt Diff: diff --git a/ext/openssl/tests/bug64802.phpt b/ext/openssl/tests/bug64802.phpt index 3a1e4fb..3b27399 100644 --- a/ext/openssl/tests/bug64802.phpt +++ b/ext/openssl/tests/bug64802.phpt @@ -8,50 +8,21 @@ if (!defined('OPENSSL_KEYTYPE_EC')) die("skip no EC available"); --FILE-- <?php $cert = file_get_contents(__DIR__.'/bug64802.pem'); -$r = openssl_x509_parse($cert,$use_short_names=true); -sort($r['subject']); -var_dump( $r['subject'] ); +$r = openssl_x509_parse($cert,$use_short_names=false); +var_dump($r['subject']['commonName']); ?> --EXPECTF-- -array(11) { +array(6) { [0]=> - string(14) "1550 Bryant st" + string(9) "www.rd.io" [1]=> - string(5) "94103" + string(8) "rdio.com" [2]=> - string(7) "4586007" + string(5) "rd.io" [3]=> - string(2) "CA" + string(12) "api.rdio.com" [4]=> - string(26) "COMODO EV Multi-Domain SSL" + string(9) "api.rd.io" [5]=> - string(20) "Private Organization" - [6]=> - string(10) "Rdio, Inc." - [7]=> - string(13) "San Francisco" - [8]=> - string(2) "US" - [9]=> - array(2) { - [0]=> - string(2) "US" - [1]=> - string(8) "Delaware" - } - [10]=> - array(6) { - [0]=> - string(9) "www.rd.io" - [1]=> - string(8) "rdio.com" - [2]=> - string(5) "rd.io" - [3]=> - string(12) "api.rdio.com" - [4]=> - string(9) "api.rd.io" - [5]=> - string(12) "www.rdio.com" - } + string(12) "www.rdio.com" }

« previous php.cvs (#85232) next »