Annotation of embedaddon/php/ext/openssl/tests/bug39217.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #39217 (Large serial number return -1)
        !             3: --SKIPIF--
        !             4: <?php 
        !             5: if (!extension_loaded("openssl")) die("skip");
        !             6: ?>
        !             7: --FILE--
        !             8: <?php 
        !             9: $dir = dirname(__FILE__);
        !            10: $certs = array('bug39217cert2.txt', 'bug39217cert1.txt');
        !            11: foreach($certs as $cert) {
        !            12:        $res = openssl_x509_parse(file_get_contents($dir . '/' . $cert));
        !            13:        print_r($res['serialNumber']);
        !            14:        echo "\n";
        !            15: }
        !            16: ?>
        !            17: --EXPECTF--
        !            18: 163040343498260435477161879008842183802
        !            19: 15

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>