bug65698.phpt 382 B

1234567891011121314151617
  1. --TEST--
  2. Bug #65689 (GeneralizedTime format parsing)
  3. --EXTENSIONS--
  4. openssl
  5. --FILE--
  6. <?php
  7. $crt = substr(__FILE__, 0, -4).'.crt';
  8. $info = openssl_x509_parse("file://$crt");
  9. var_dump($info["validFrom"], $info["validFrom_time_t"], $info["validTo"], $info["validTo_time_t"]);
  10. ?>
  11. Done
  12. --EXPECTF--
  13. string(15) "20090303125318Z"
  14. int(12360%d)
  15. string(15) "20240303125318Z"
  16. int(17094%d)
  17. Done