1--TEST--
2CVE-2013-6420
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['issuer']['emailAddress'], $info["validFrom_time_t"]);
12?>
13Done
14--EXPECTF--
15%s openssl_x509_parse(): illegal length in timestamp in %s%ecve-2013-6420.php on line 3
16string(27) "stefan.esser@sektioneins.de"
17int(-1)
18Done
19