Lines Matching refs:link
13 $link = NULL;
21 $tmp = @mysqli_connect($link);
26 $tmp = @mysqli_connect($link, $link);
31 $tmp = @mysqli_connect($link, $link, $link);
36 $tmp = @mysqli_connect($link, $link, $link, $link);
41 $tmp = @mysqli_connect($link, $link, $link, $link, $link);
46 $tmp = @mysqli_connect($link, $link, $link, $link, $link, $link);
51 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
55 mysqli_close($link);
57 …if ($link = mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $so…
61 if (false !== $link)
62 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($link), $link);
66 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db, $port))) {
69 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_socket' AS 'testing'"))
70 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
73 mysqli_close($link);
77 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db))) {
80 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_port' AS 'testing'"))
81 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
84 mysqli_close($link);
88 if (!is_object($link = mysqli_connect($host, $user))) {
91 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_pw' AS 'testing'"))
92 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
95 mysqli_close($link);
99 if (!is_object($link = mysqli_connect($host))) {
102 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_user' AS 'testing'"))
103 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
106 mysqli_close($link);
110 if (!is_object($link = mysqli_connect())) {
113 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host' AS 'testing'"))
114 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
117 mysqli_close($link);
122 if (!is_object($link = mysqli_connect())) {
125 … if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host (persistent)' AS 'testing'"))
126 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
130 mysqli_errno($link), mysqli_error($link));
134 mysqli_close($link);
138 if (is_object($link = @mysqli_connect())) {
140 mysqli_close($link);