mirror of
https://github.com/php/php-src.git
synced 2025-01-13 22:44:36 +08:00
3c42f64e6e
Mainly use spaces for indent and fix some other CS issues. Also drop checks for unsupported OpenSSL library versions.
18 lines
426 B
PHP
18 lines
426 B
PHP
--TEST--
|
|
Bug #65689 (GeneralizedTime format parsing)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("openssl")) die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
$crt = substr(__FILE__, 0, -4).'.crt';
|
|
$info = openssl_x509_parse("file://$crt");
|
|
var_dump($info["validFrom"], $info["validFrom_time_t"], $info["validTo"], $info["validTo_time_t"]);
|
|
?>
|
|
Done
|
|
--EXPECTF--
|
|
string(15) "20090303125318Z"
|
|
int(12360%d)
|
|
string(15) "20240303125318Z"
|
|
int(17094%d)
|
|
Done
|