Lines Matching refs:link

14     $link   = NULL;
22 $tmp = @mysqli_connect($link);
27 $tmp = @mysqli_connect($link, $link);
32 $tmp = @mysqli_connect($link, $link, $link);
37 $tmp = @mysqli_connect($link, $link, $link, $link);
42 $tmp = @mysqli_connect($link, $link, $link, $link, $link);
47 $tmp = @mysqli_connect($link, $link, $link, $link, $link, $link);
52 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
56 mysqli_close($link);
58 …if ($link = mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $so…
62 if (false !== $link)
63 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($link), $link);
67 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db, $port))) {
70 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_socket' AS 'testing'"))
71 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
74 mysqli_close($link);
78 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db))) {
81 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_port' AS 'testing'"))
82 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
85 mysqli_close($link);
89 if (!is_object($link = mysqli_connect($host, $user))) {
92 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_pw' AS 'testing'"))
93 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
96 mysqli_close($link);
100 if (!is_object($link = mysqli_connect($host))) {
103 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_user' AS 'testing'"))
104 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
107 mysqli_close($link);
111 if (!is_object($link = mysqli_connect())) {
114 if (!$res = mysqli_query($link, "SELECT 'mysqli.default_host' AS 'testing'"))
115 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
118 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);