summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/bug51647.phpt
blob: 6726b4e4e4b0b5d32d9a9e47967f18824ecf31df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #51647 (Certificate file without private key (pk in another file) doesn't work)
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
	include ("connect.inc");

	$link = mysqli_init();
	$link->ssl_set("client-key.pem", "client-cert.pem", "cacert.pem","","");
	if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
		printf("[002] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
	}
	var_dump($link->query("show status like \"Ssl_cipher\"")->fetch_assoc());

	print "done!";
?>
--EXPECTF--
array(2) {
  ["Variable_name"]=>
  string(10) "Ssl_cipher"
  ["Value"]=>
  string(%d) "%s"
}
done!