xref: /PHP-8.0/ext/openssl/tests/bug74022.phpt (revision a555cc0b)
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 = __DIR__ . 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--EXPECT--
16bool(true)
17bool(false)
18