summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2012-02-05 10:08:16 +0000
committerRasmus Lerdorf <rasmus@php.net>2012-02-05 10:08:16 +0000
commitf6f283c3e229670fea5e95cea796cafdeb75cc9c (patch)
tree7370c78dc9b7325761097942afbaddf9897b5706 /ext/openssl
parentf36a3113b619f897a2e462e83d737f989faaabdd (diff)
downloadphp-git-f6f283c3e229670fea5e95cea796cafdeb75cc9c.tar.gz
Another openssl test that is dependent on the openssl version. The output has
changed in more recent versions. Synch with newer output and consider changing the test to only pick out the more stable fields instead of all of them.
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/tests/openssl_x509_parse_basic.phpt28
1 files changed, 23 insertions, 5 deletions
diff --git a/ext/openssl/tests/openssl_x509_parse_basic.phpt b/ext/openssl/tests/openssl_x509_parse_basic.phpt
index 5484bfe58d..e0f1dbb968 100644
--- a/ext/openssl/tests/openssl_x509_parse_basic.phpt
+++ b/ext/openssl/tests/openssl_x509_parse_basic.phpt
@@ -9,7 +9,7 @@ $cert = "file://" . dirname(__FILE__) . "/cert.crt";
var_dump(openssl_x509_parse($cert));
var_dump(openssl_x509_parse($cert, false));
?>
---EXPECT--
+--EXPECTF--
array(12) {
["name"]=>
string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/emailAddress=hnangelo@php.net"
@@ -27,7 +27,7 @@ array(12) {
string(16) "hnangelo@php.net"
}
["hash"]=>
- string(8) "088c65c2"
+ string(8) "%s"
["issuer"]=>
array(5) {
["C"]=>
@@ -54,7 +54,7 @@ array(12) {
["validTo_time_t"]=>
int(1217413723)
["purposes"]=>
- array(8) {
+ array(9) {
[1]=>
array(3) {
[0]=>
@@ -127,6 +127,15 @@ array(12) {
[2]=>
string(10) "ocsphelper"
}
+ [9]=>
+ array(3) {
+ [0]=>
+ bool(false)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(13) "timestampsign"
+ }
}
["extensions"]=>
array(3) {
@@ -158,7 +167,7 @@ array(12) {
string(16) "hnangelo@php.net"
}
["hash"]=>
- string(8) "088c65c2"
+ string(8) "%s"
["issuer"]=>
array(5) {
["countryName"]=>
@@ -185,7 +194,7 @@ array(12) {
["validTo_time_t"]=>
int(1217413723)
["purposes"]=>
- array(8) {
+ array(9) {
[1]=>
array(3) {
[0]=>
@@ -258,6 +267,15 @@ array(12) {
[2]=>
string(11) "OCSP helper"
}
+ [9]=>
+ array(3) {
+ [0]=>
+ bool(false)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(18) "Time Stamp signing"
+ }
}
["extensions"]=>
array(3) {