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