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 $link = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
46 if (!$thread_id = $link->thread_id)
47 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
49 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
52 if (!is_int($new_thread_id = $link->thread_id) || ($new_thread_id < 0))
58 if (!($res = $link->query("SELECT 'works also with oo' AS syntax")) ||
60 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
65 mysqli_close($link);
67 if (true !== ($tmp = $link->connect($phost, $user, $passwd, $db, $port, $socket)))
70 if (!$link = mysqli_connect($phost, $user, $passwd, $db, $port, $socket))
74 if (true !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
79 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
83 if (!$thread_id = mysqli_thread_id($link))
84 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
86 … if (true !== ($tmp = my_mysqli_real_connect($link, $phost, $user, $passwd, $db, $port, $socket)))
89 if (!is_int($new_thread_id = mysqli_thread_id($link)) || ($new_thread_id < 0))
95 if (!($res = mysqli_query($link, "SELECT 'ok' AS it_works")) ||
97 printf("[021] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
102 mysqli_close($link);
104 $link = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
106 if (!$thread_id = $link->thread_id)
107 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
109 if (true !== ($tmp = $link->real_connect($phost, $user, $passwd, $db, $port, $socket)))
112 if (!is_int($new_thread_id = $link->thread_id) || ($new_thread_id < 0))
118 if (!($res = $link->query("SELECT 'works also with oo' AS syntax")) ||
120 printf("[027] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
125 mysqli_close($link);
127 if (true !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
130 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
134 if (true !== ($tmp = $link->connect($phost, $user, $passwd, $db, $port, $socket)))