--TEST-- Bug #51647 (Certificate file without private key (pk in another file) doesn't work) --SKIPIF-- --FILE-- ssl_set("{$path_to_pems}client-key.pem", "{$path_to_pems}client-cert.pem", "{$path_to_pems}cacert.pem","","")) printf("[002] [%d] %s\n", $link->errno, $link->error); if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) { printf("[003] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); } if (!$res = $link->query('SHOW STATUS like "Ssl_cipher"')) { if (1064 == $link->errno) { /* ERROR 1064 (42000): You have an error in your SQL syntax; = sql strict mode */ if ($res = $link->query("SHOW STATUS")) { while ($row = $res->fetch_assoc()) if ($row['Variable_name'] == 'Ssl_cipher') break; } else { printf("[005] [%d] %s\n", $link->errno, $link->error); } } else { printf("[004] [%d] %s\n", $link->errno, $link->error); } } else { if (!$row = $res->fetch_assoc()) printf("[006] [%d] %s\n", $link->errno, $link->error); } var_dump($row); print "done!"; ?> --EXPECTF-- array(2) { ["Variable_name"]=> string(10) "Ssl_cipher" ["Value"]=> string(%d) "%S" } done!