You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// mysqli_ping() cannot be tested, because one would need to cause an error inside the C function to test it
54
58
mysqli_real_query($link, "FOO");
@@ -64,7 +68,11 @@ if (mysqli_get_server_version($link) >= 50600)
64
68
mysqli_multi_query($link, "BAR; FOO;");
65
69
mysqli_query($link, "FOO");
66
70
mysqli_change_user($link, "This might work if you accept anonymous users in your setup", "password", $db);
67
-
mysqli_kill($link, -1);
71
+
try {
72
+
mysqli_kill($link, -1);
73
+
} catch (\ValueError$e) {
74
+
echo$e->getMessage() . \PHP_EOL;
75
+
}
68
76
mysqli_real_query($link, "FOO");
69
77
mysqli_select_db($link, "Oh lord, let this be an unknown database name");
70
78
@@ -106,12 +114,10 @@ Warning: mysqli_multi_query(): (%d/%d): You have an error in your SQL syntax; ch
106
114
Warning: mysqli_query(): (%d/%d): You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near 'FOO' at line 1 in %s on line %d
107
115
108
116
Warning: mysqli_change_user(): (%d/%d): Access denied for user '%s'@'%s' (using password: %s) in %s on line %d
109
-
110
-
Warning: mysqli_kill(): processid should have positive value in %s on line %d
117
+
mysqli_kill(): Argument #2 ($connection_id) must be greater than 0
111
118
112
119
Warning: mysqli_real_query(): (%d/%d): You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near 'FOO' at line 1 in %s on line %d
113
-
114
-
Warning: mysqli_kill(): processid should have positive value in %s on line %d
120
+
mysqli_kill(): Argument #2 ($connection_id) must be greater than 0
115
121
[011] Access denied for user '%s'@'%s' (using password: YES)
116
122
[014] Access denied for user '%s'@'%s' (using password: YES)
0 commit comments