Lines Matching refs:link

19     $link = NULL;
20 $tmp = @mysqli_connect($link);
25 $tmp = @mysqli_connect($link, $link);
30 $tmp = @mysqli_connect($link, $link, $link);
35 $tmp = @mysqli_connect($link, $link, $link, $link);
40 $tmp = @mysqli_connect($link, $link, $link, $link, $link);
45 $tmp = @mysqli_connect($link, $link, $link, $link, $link, $link);
50 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
54 mysqli_close($link);
56 …if ($link = mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $so…
60 if (false !== $link)
61 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($link), $link);
65 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db, $port))) {
68 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_socket' AS 'testing'"))
69 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
72 mysqli_close($link);
76 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db))) {
79 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_port' AS 'testing'"))
80 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
83 mysqli_close($link);
87 if (!is_object($link = mysqli_connect($host, $user))) {
90 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_pw' AS 'testing'"))
91 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
94 mysqli_close($link);
98 if (!is_object($link = mysqli_connect($host))) {
101 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_user' AS 'testing'"))
102 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
105 mysqli_close($link);
109 if (!is_object($link = mysqli_connect())) {
112 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host' AS 'testing'"))
113 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
116 mysqli_close($link);
120 if (!is_object($link = mysqli_connect())) {
123 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host (persistent)' AS 'testing'"))
124 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
128 mysqli_errno($link), mysqli_error($link));
132 mysqli_close($link);
136 if (is_object($link = @mysqli_connect())) {
138 mysqli_close($link);