--TEST--
Bug #74022 PHP Fast CGI crashes when reading from a pfx file with valid password, multiple extra certs
--SKIPIF--
<?php
if (!extension_loaded("openssl")) die("skip");
?>
--FILE--
<?php
function test($p12_contents, $password) {
    openssl_pkcs12_read($p12_contents, $cert_data, $password);
    openssl_error_string();
    var_dump(count($cert_data['extracerts']));
}

$p12_base64 = '[encoded data, 7848 characters]';

$p12 = base64_decode($p12_base64);

test($p12, 'qwerty');
?>
--EXPECT--
int(2)
