summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-03-27 15:23:01 +0200
committerAnatoliy Belsky <ab@php.net>2012-03-27 16:07:59 +0200
commite55718b09121c79f3a6b0cfb7c446112fb378402 (patch)
tree0c9701b8c908d84b12e2c708a8fc3308955ac00e
parent8c44c85b0616f4eee6a68eec1e0d906d6b65ac02 (diff)
downloadphp-git-e55718b09121c79f3a6b0cfb7c446112fb378402.tar.gz
Fix bug #61412 ext\openssl\tests\bug28382.phpt fails
-rw-r--r--ext/openssl/tests/bug28382.phpt9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/openssl/tests/bug28382.phpt b/ext/openssl/tests/bug28382.phpt
index 771fc932fe..2bedeb2d67 100644
--- a/ext/openssl/tests/bug28382.phpt
+++ b/ext/openssl/tests/bug28382.phpt
@@ -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) {
@@ -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/"