Lines Matching refs:tmp
13 $tmp = NULL;
16 if (!is_null($tmp = @mysqli_change_user()))
17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
19 if (!is_null($tmp = @mysqli_change_user($link)))
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
22 if (!is_null($tmp = @mysqli_change_user($link, $link)))
23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 if (!is_null($tmp = @mysqli_change_user($link, $link, $link)))
26 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
28 if (!is_null($tmp = @mysqli_change_user($link, $link, $link, $link, $link)))
29 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
35 …if (false !== ($tmp = @mysqli_change_user($link, $user . '_unknown_really', $passwd . 'non_empty',…
36 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
42 if (false !== ($tmp = @mysqli_change_user($link, $user, $passwd . '_unknown_really', $db)))
43 printf("[009] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
55 $tmp = mysqli_fetch_assoc($res);
57 if (1 != $tmp['test_var'])
60 if (true !== ($tmp = mysqli_change_user($link, $user, $passwd, $db)))
61 printf("[013] Expecting true, got %s/%s\n", gettype($tmp), $tmp);
65 $tmp = mysqli_fetch_assoc($res);
68 if (substr($tmp['user'], 0, strlen($user)) !== $user)
69 printf("[015] Expecting user %s, got user() %s\n", $user, $tmp['user']);
70 if ($tmp['dbname'] != $db)
71 printf("[016] Expecting database %s, got database() %s\n", $db, $tmp['dbname']);
73 if (false !== ($tmp = @mysqli_change_user($link, $user, $passwd, $db . '_unknown_really')))
74 printf("[011] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
83 …if (false !== ($tmp = @mysqli_change_user($link, str_repeat('user', 16384), str_repeat('pass', 163…
84 printf("[013] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
95 if (true !== ($tmp = mysqli_change_user($link, $user, $passwd, "")))
96 printf("[015] Expecting true, got %s/%s\n", gettype($tmp), $tmp);
100 $tmp = mysqli_fetch_assoc($res);
103 if ($tmp['dbname'] != "")
104 printf("[017] Expecting database '', got database() '%s'\n", $tmp['dbname']);
108 if (NULL !== ($tmp = @mysqli_change_user($link, $user, $passwd, $db)))
109 printf("[018] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
120 $tmp = mysqli_fetch_assoc($res);
122 if (1 != $tmp['test_var'])
125 if (true !== ($tmp = mysqli_change_user($link, $user, $passwd, $db)))
126 printf("[023] Expecting true, got %s/%s\n", gettype($tmp), $tmp);
130 $tmp = mysqli_fetch_assoc($res);
133 if (substr($tmp['user'], 0, strlen($user)) !== $user)
134 printf("[025] Expecting user %s, got user() %s\n", $user, $tmp['user']);
135 if ($tmp['dbname'] != $db)
136 printf("[026] Expecting database %s, got database() %s\n", $db, $tmp['dbname']);
140 $tmp = mysqli_fetch_assoc($res);
142 if (NULL !== $tmp['test_var'])