xref: /PHP-7.3/ext/openssl/tests/bug39217.phpt (revision 782352c5)
1--TEST--
2Bug #39217 (Large serial number return -1)
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip");
6?>
7--FILE--
8<?php
9$dir = dirname(__FILE__);
10$certs = array('bug39217cert2.txt', 'bug39217cert1.txt');
11foreach($certs as $cert) {
12    $res = openssl_x509_parse(file_get_contents($dir . '/' . $cert));
13    print_r($res['serialNumber']);
14    echo "\n";
15}
16?>
17--EXPECT--
18163040343498260435477161879008842183802
1915
20