xref: /PHP-7.0/ext/openssl/tests/bug65698.phpt (revision 78b2b1d6)
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(12360%d)
17string(15) "20240303125318Z"
18int(17094%d)
19Done
20