--- embedaddon/php/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012/02/21 23:47:59 1.1.1.1 +++ embedaddon/php/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012/05/29 12:34:36 1.1.1.2 @@ -1,7 +1,9 @@ --TEST-- openssl_x509_parse() basic test --SKIPIF-- - + --FILE-- ---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 +29,7 @@ array(12) { string(16) "hnangelo@php.net" } ["hash"]=> - string(8) "088c65c2" + string(8) "%s" ["issuer"]=> array(5) { ["C"]=> @@ -54,7 +56,7 @@ array(12) { ["validTo_time_t"]=> int(1217413723) ["purposes"]=> - array(8) { + array(9) { [1]=> array(3) { [0]=> @@ -127,6 +129,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 +169,7 @@ array(12) { string(16) "hnangelo@php.net" } ["hash"]=> - string(8) "088c65c2" + string(8) "%s" ["issuer"]=> array(5) { ["countryName"]=> @@ -185,7 +196,7 @@ array(12) { ["validTo_time_t"]=> int(1217413723) ["purposes"]=> - array(8) { + array(9) { [1]=> array(3) { [0]=> @@ -257,6 +268,15 @@ array(12) { bool(true) [2]=> string(11) "OCSP helper" + } + [9]=> + array(3) { + [0]=> + bool(false) + [1]=> + bool(true) + [2]=> + string(18) "Time Stamp signing" } } ["extensions"]=>