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.
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"
string(16) "hnangelo@php.net"
}
["hash"]=>
- string(8) "088c65c2"
+ string(8) "%s"
["issuer"]=>
array(5) {
["C"]=>
["validTo_time_t"]=>
int(1217413723)
["purposes"]=>
- array(8) {
+ array(9) {
[1]=>
array(3) {
[0]=>
[2]=>
string(10) "ocsphelper"
}
+ [9]=>
+ array(3) {
+ [0]=>
+ bool(false)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(13) "timestampsign"
+ }
}
["extensions"]=>
array(3) {
string(16) "hnangelo@php.net"
}
["hash"]=>
- string(8) "088c65c2"
+ string(8) "%s"
["issuer"]=>
array(5) {
["countryName"]=>
["validTo_time_t"]=>
int(1217413723)
["purposes"]=>
- array(8) {
+ array(9) {
[1]=>
array(3) {
[0]=>
[2]=>
string(11) "OCSP helper"
}
+ [9]=>
+ array(3) {
+ [0]=>
+ bool(false)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(18) "Time Stamp signing"
+ }
}
["extensions"]=>
array(3) {