Skip to content

Commit e55718b

Browse files
committed
Fix bug #61412 ext\openssl\tests\bug28382.phpt fails
1 parent 8c44c85 commit e55718b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ext/openssl/tests/bug28382.phpt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ if (OPENSSL_VERSION_NUMBER<0x009070af) die("skip");
1010
$cert = file_get_contents(dirname(__FILE__) . "/bug28382cert.txt");
1111
$ext = openssl_x509_parse($cert);
1212
var_dump($ext['extensions']);
13+
/* openssl 1.0 prepends the string "Full Name:" to the crlDistributionPoints array key.
14+
For now, as this is the one difference only between 0.9.x and 1.x, it's handled with
15+
placeholders to not to duplicate the test. When more diffs come, a duplication would
16+
be probably a better solution.
17+
*/
1318
?>
1419
--EXPECTF--
1520
array(11) {
@@ -20,9 +25,7 @@ array(11) {
2025
["nsCertType"]=>
2126
string(30) "SSL Client, SSL Server, S/MIME"
2227
["crlDistributionPoints"]=>
23-
string(65) "
24-
Full Name:
25-
URI:http://mobile.blue-software.ro:90/ca/crl.shtml
28+
string(%d) "%AURI:http://mobile.blue-software.ro:90/ca/crl.shtml
2629
"
2730
["nsCaPolicyUrl"]=>
2831
string(38) "http://mobile.blue-software.ro:90/pub/"

0 commit comments

Comments
 (0)