summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/bug68912.phpt
blob: 724a96017a49702e83909b6b1a35df159b002b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #68912 (Segmentation fault at openssl_spki_new)
--SKIPIF--
<?php
if (!extension_loaded("openssl")) die("skip");
if (!@openssl_pkey_new()) die("skip cannot create private key");
?>
--FILE--
<?php

$var1=fopen(__FILE__, 'r');
$var2=2;
$var3=3;

openssl_spki_new($var1, $var2, $var3);
?>
--EXPECTF--
Warning: openssl_spki_new(): supplied resource is not a valid OpenSSL X.509/key resource in %sbug68912.php on line %d

Warning: openssl_spki_new(): Unable to use supplied private key in %sbug68912.php on line %d