Lines Matching refs:link

14 	$link   = NULL;
26 $tmp = @mysqli_connect($link);
31 $tmp = @mysqli_connect($link, $link);
36 $tmp = @mysqli_connect($link, $link, $link);
41 $tmp = @mysqli_connect($link, $link, $link, $link);
46 $tmp = @mysqli_connect($link, $link, $link, $link, $link);
51 $tmp = @mysqli_connect($link, $link, $link, $link, $link, $link);
56 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
60 mysqli_close($link);
62 …if ($link = mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $so…
66 if (false !== $link)
67 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($link), $link);
71 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db, $port))) {
74 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_socket' AS 'testing'"))
75 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
78 mysqli_close($link);
82 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db))) {
85 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_port' AS 'testing'"))
86 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
89 mysqli_close($link);
93 if (!is_object($link = mysqli_connect($host, $user))) {
96 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_pw' AS 'testing'"))
97 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
100 mysqli_close($link);
104 if (!is_object($link = mysqli_connect($host))) {
107 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_user' AS 'testing'"))
108 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
111 mysqli_close($link);
115 if (!is_object($link = mysqli_connect())) {
118 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host' AS 'testing'"))
119 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
122 mysqli_close($link);
127 if (!is_object($link = mysqli_connect())) {
130 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host (persistent)' AS 'testing'"))
131 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
135 mysqli_errno($link), mysqli_error($link));
139 mysqli_close($link);
143 if (is_object($link = @mysqli_connect())) {
145 mysqli_close($link);