xref: /PHP-7.3/ext/openssl/tests/bug74022.phpt (revision ded3d984)
1--TEST--
2Bug #74022 PHP Fast CGI crashes when reading from a pfx file with valid password
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip");
6?>
7--FILE--
8<?php
9$pfx = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug74022.pfx";
10$cert_store = file_get_contents($pfx);
11
12var_dump(openssl_pkcs12_read($cert_store, $cert_info, "csos"));
13var_dump(openssl_error_string());
14?>
15===DONE===
16--EXPECT--
17bool(true)
18bool(false)
19===DONE===
20