xref: /PHP-8.3/ext/openssl/tests/bug39217.phpt (revision 74859783)
1--TEST--
2Bug #39217 (Large serial number return -1)
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7$dir = __DIR__;
8$certs = array('bug39217cert2.txt', 'bug39217cert1.txt');
9foreach($certs as $cert) {
10    $res = openssl_x509_parse(file_get_contents($dir . '/' . $cert));
11    print_r($res['serialNumber']);
12    echo "\n";
13}
14?>
15--EXPECT--
16163040343498260435477161879008842183802
1715
18