Lines Matching refs:tmp
22 $tmp = NULL;
28 if (!is_null($tmp = @$mysqli->change_user()))
29 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
31 if (!is_null($tmp = @$mysqli->change_user($link)))
32 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
34 if (!is_null($tmp = @$mysqli->change_user($link, $link)))
35 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
37 if (!is_null($tmp = @$mysqli->change_user($link, $link, $link, $link)))
38 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
40 if (false !== ($tmp = $mysqli->change_user($user . '_unknown_really', $passwd . 'non_empty', $db)))
41 printf("[006] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
43 if (false !== ($tmp = $mysqli->change_user($user, $passwd . '_unknown_really', $db)))
44 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
46 if (false !== ($tmp = $mysqli->change_user($user, $passwd, $db . '_unknown_really')))
47 printf("[008] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
59 $tmp = $res->fetch_assoc();
61 if (1 != $tmp['test_var'])
64 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
65 printf("[012] Expecting true, got %s/%s\n", gettype($tmp), $tmp);
69 $tmp = $res->fetch_assoc();
72 if (substr($tmp['user'], 0, strlen($user)) !== $user)
73 printf("[014] Expecting user %s, got user() %s\n", $user, $tmp['user']);
74 if ($tmp['dbname'] != $db)
75 printf("[015] Expecting database %s, got database() %s\n", $db, $tmp['dbname']);
79 $tmp = $res->fetch_assoc();
81 if (NULL !== $tmp['test_var'])
86 if (NULL !== ($tmp = @$mysqli->change_user($user, $passwd, $db)))
87 printf("[018] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);