Skip to content

Commit

Permalink
Fix bug #61412 ext\openssl\tests\bug28382.phpt fails
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Mar 27, 2012
1 parent 8c44c85 commit e55718b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ext/openssl/tests/bug28382.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ if (OPENSSL_VERSION_NUMBER<0x009070af) die("skip");
$cert = file_get_contents(dirname(__FILE__) . "/bug28382cert.txt");
$ext = openssl_x509_parse($cert);
var_dump($ext['extensions']);
/* openssl 1.0 prepends the string "Full Name:" to the crlDistributionPoints array key.
For now, as this is the one difference only between 0.9.x and 1.x, it's handled with
placeholders to not to duplicate the test. When more diffs come, a duplication would
be probably a better solution.
*/
?>
--EXPECTF--
array(11) {
Expand All @@ -20,9 +25,7 @@ array(11) {
["nsCertType"]=>
string(30) "SSL Client, SSL Server, S/MIME"
["crlDistributionPoints"]=>
string(65) "
Full Name:
URI:http://mobile.blue-software.ro:90/ca/crl.shtml
string(%d) "%AURI:http://mobile.blue-software.ro:90/ca/crl.shtml
"
["nsCaPolicyUrl"]=>
string(38) "http://mobile.blue-software.ro:90/pub/"
Expand Down

0 comments on commit e55718b

Please sign in to comment.