Diff for /embedaddon/php/ext/openssl/tests/openssl_x509_parse_basic.phpt between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:47:59 version 1.1.1.2, 2012/05/29 12:34:36
Line 1 Line 1
 --TEST--  --TEST--
 openssl_x509_parse() basic test  openssl_x509_parse() basic test
 --SKIPIF--  --SKIPIF--
<?php if (!extension_loaded("openssl")) print "skip"; ?><?php if (!extension_loaded("openssl")) print "skip"; 
 if (OPENSSL_VERSION_NUMBER < 0x10000000) die("skip Output requires OpenSSL 1.0");
 ?>
 --FILE--  --FILE--
 <?php  <?php
 $cert = "file://" . dirname(__FILE__) . "/cert.crt";  $cert = "file://" . dirname(__FILE__) . "/cert.crt";
Line 9  $cert = "file://" . dirname(__FILE__) . "/cert.crt"; Line 11  $cert = "file://" . dirname(__FILE__) . "/cert.crt";
 var_dump(openssl_x509_parse($cert));  var_dump(openssl_x509_parse($cert));
 var_dump(openssl_x509_parse($cert, false));  var_dump(openssl_x509_parse($cert, false));
 ?>  ?>
--EXPECT----EXPECTF--
 array(12) {  array(12) {
   ["name"]=>    ["name"]=>
   string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/emailAddress=hnangelo@php.net"    string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/emailAddress=hnangelo@php.net"
Line 27  array(12) { Line 29  array(12) {
     string(16) "hnangelo@php.net"      string(16) "hnangelo@php.net"
   }    }
   ["hash"]=>    ["hash"]=>
  string(8) "088c65c2"  string(8) "%s"
   ["issuer"]=>    ["issuer"]=>
   array(5) {    array(5) {
     ["C"]=>      ["C"]=>
Line 54  array(12) { Line 56  array(12) {
   ["validTo_time_t"]=>    ["validTo_time_t"]=>
   int(1217413723)    int(1217413723)
   ["purposes"]=>    ["purposes"]=>
  array(8) {  array(9) {
     [1]=>      [1]=>
     array(3) {      array(3) {
       [0]=>        [0]=>
Line 127  array(12) { Line 129  array(12) {
       [2]=>        [2]=>
       string(10) "ocsphelper"        string(10) "ocsphelper"
     }      }
       [9]=>
       array(3) {
         [0]=>
         bool(false)
         [1]=>
         bool(true)
         [2]=>
         string(13) "timestampsign"
       }
   }    }
   ["extensions"]=>    ["extensions"]=>
   array(3) {    array(3) {
Line 158  array(12) { Line 169  array(12) {
     string(16) "hnangelo@php.net"      string(16) "hnangelo@php.net"
   }    }
   ["hash"]=>    ["hash"]=>
  string(8) "088c65c2"  string(8) "%s"
   ["issuer"]=>    ["issuer"]=>
   array(5) {    array(5) {
     ["countryName"]=>      ["countryName"]=>
Line 185  array(12) { Line 196  array(12) {
   ["validTo_time_t"]=>    ["validTo_time_t"]=>
   int(1217413723)    int(1217413723)
   ["purposes"]=>    ["purposes"]=>
  array(8) {  array(9) {
     [1]=>      [1]=>
     array(3) {      array(3) {
       [0]=>        [0]=>
Line 257  array(12) { Line 268  array(12) {
       bool(true)        bool(true)
       [2]=>        [2]=>
       string(11) "OCSP helper"        string(11) "OCSP helper"
       }
       [9]=>
       array(3) {
         [0]=>
         bool(false)
         [1]=>
         bool(true)
         [2]=>
         string(18) "Time Stamp signing"
     }      }
   }    }
   ["extensions"]=>    ["extensions"]=>

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>