Lines Matching refs:link

15 if (!($link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)))
18 if (false === strpos($link->host_info, 'TCP/IP'))
22 if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl"')) {
25 if ($link->errno == 1064 && ($res = $link->query("SHOW VARIABLES"))) {
30 … die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
36 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
39 die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error));
41 $link->close();
47 if (!is_object($link = mysqli_init()))
48 printf("[001] Cannot create link\n");
50 …if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, MYSQLI_CLIENT_SSL |…
54 if (!$res = $link->query('SHOW STATUS like "Ssl_cipher"')) {
55 if (1064 == $link->errno) {
57 if ($res = $link->query("SHOW STATUS")) {
62 printf("[005] [%d] %s\n", $link->errno, $link->error);
65 printf("[004] [%d] %s\n", $link->errno, $link->error);
69 printf("[006] [%d] %s\n", $link->errno, $link->error);
75 $link->close();
77 if (!is_object($link = mysqli_init()))
78 printf("[008] Cannot create link\n");
80 …if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, MYSQLI_CLIENT_SSL))…
84 if (!$res = $link->query('SHOW STATUS like "Ssl_cipher"')) {
85 if (1064 == $link->errno) {
87 if ($res = $link->query("SHOW STATUS")) {
92 printf("[010] [%d] %s\n", $link->errno, $link->error);
95 printf("[011] [%d] %s\n", $link->errno, $link->error);
99 printf("[012] [%d] %s\n", $link->errno, $link->error);
105 $link->close();