com php-src: Improve test to target specific issue: ext/openssl/tests/bug64802.phpt

From: Date: Wed, 04 Mar 2015 15:23:46 +0000
Subject: com php-src: Improve test to target specific issue: ext/openssl/tests/bug64802.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85216@lists.php.net to get a copy of this message
Commit: 8680fc83316be812748d3bedfc785603f263a568 Author: Daniel Lowrey <rdlowrey@php.net> Wed, 4 Mar 2015 10:23:46 -0500 Parents: a39b1898fe8d79858bc9f6d34ef1e4f513aff5c3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8680fc83316be812748d3bedfc785603f263a568 Log: Improve test to target specific issue 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 (#85216) next »