summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lowrey <rdlowrey@php.net>2015-03-04 22:37:07 -0700
committerDaniel Lowrey <rdlowrey@php.net>2015-03-04 22:37:07 -0700
commitca766e078762e0ae6c801573e11f031c5371dadb (patch)
tree64cd23799c5c1c8ccb089059fc7cce040e844ce4
parent241f3c34b89ab55432d5af3fd1e4217540e161a3 (diff)
downloadphp-git-ca766e078762e0ae6c801573e11f031c5371dadb.tar.gz
Fix broken test
-rw-r--r--ext/openssl/tests/bug64802.phpt47
1 files changed, 9 insertions, 38 deletions
diff --git a/ext/openssl/tests/bug64802.phpt b/ext/openssl/tests/bug64802.phpt
index 3a1e4fb03c..3b273998d0 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"
}