bug74022.phpt 358 B

123456789101112131415
  1. --TEST--
  2. Bug #74022 PHP Fast CGI crashes when reading from a pfx file with valid password
  3. --EXTENSIONS--
  4. openssl
  5. --FILE--
  6. <?php
  7. $pfx = __DIR__ . DIRECTORY_SEPARATOR . "bug74022.pfx";
  8. $cert_store = file_get_contents($pfx);
  9. var_dump(openssl_pkcs12_read($cert_store, $cert_info, "csos"));
  10. var_dump(openssl_error_string());
  11. ?>
  12. --EXPECT--
  13. bool(true)
  14. bool(false)