xref: /PHP-5.5/ext/openssl/tests/bug65698.phpt (revision 76a7fd89)
1--TEST--
2Bug #65689 (GeneralizedTime format parsing)
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip");
6?>
7--FILE--
8<?php
9$crt = substr(__FILE__, 0, -4).'.crt';
10$info = openssl_x509_parse("file://$crt");
11var_dump($info["validFrom"], $info["validFrom_time_t"], $info["validTo"], $info["validTo_time_t"]);
12?>
13Done
14--EXPECTF--
15string(15) "20090303125318Z"
16int(1236084798)
17string(15) "20240303125318Z"
18int(1709470398)
19Done
20