xref: /PHP-8.3/ext/openssl/tests/bug65698.phpt (revision 74859783)
1--TEST--
2Bug #65689 (GeneralizedTime format parsing)
3--EXTENSIONS--
4openssl
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