Lines Matching refs:link

19 	if (!$link = my_mysqli_connect($phost, $user, $passwd, $db, $port, $socket))
23 if (!$thread_id = $link->thread_id)
24 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
26 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
29 if (!is_int($new_thread_id = mysqli_thread_id($link)) || ($new_thread_id < 0))
35 if (!($res = mysqli_query($link, "SELECT 'ok' AS it_works")) ||
37 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 mysqli_close($link);
44 if (!$link = new my_mysqli($phost, $user, $passwd, $db, $port, $socket))
48 if (!$thread_id = $link->thread_id)
49 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
51 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
54 if (!is_int($new_thread_id = $link->thread_id) || ($new_thread_id < 0))
60 if (!($res = $link->query("SELECT 'works also with oo' AS syntax")) ||
62 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
67 mysqli_close($link);
69 if (NULL !== ($tmp = $link->connect($phost, $user, $passwd, $db, $port, $socket)))
72 if (!$link = mysqli_connect($phost, $user, $passwd, $db, $port, $socket))
76 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
81 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
85 if (!$thread_id = mysqli_thread_id($link))
86 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
88 if (true !== ($tmp = my_mysqli_real_connect($link, $phost, $user, $passwd, $db, $port, $socket)))
91 if (!is_int($new_thread_id = mysqli_thread_id($link)) || ($new_thread_id < 0))
97 if (!($res = mysqli_query($link, "SELECT 'ok' AS it_works")) ||
99 printf("[021] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
104 mysqli_close($link);
106 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
110 if (!$thread_id = $link->thread_id)
111 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
113 if (true !== ($tmp = $link->real_connect($phost, $user, $passwd, $db, $port, $socket)))
116 if (!is_int($new_thread_id = $link->thread_id) || ($new_thread_id < 0))
122 if (!($res = $link->query("SELECT 'works also with oo' AS syntax")) ||
124 printf("[027] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
129 mysqli_close($link);
131 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
134 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
138 if (NULL !== ($tmp = $link->connect($phost, $user, $passwd, $db, $port, $socket)))