source: src/router/php7/ext/openssl/tests/bug74022.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 435 bytes
Line 
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--EXPECTF--
17bool(true)
18bool(false)
19===DONE===
Note: See TracBrowser for help on using the repository browser.