MysqlndUhConnection::killConnection
Asks the server to kill a MySQL thread
&reftitle.description;
public boolMysqlndUhConnection::killConnection
mysqlnd_connectionconnection
intpid
Asks the server to kill a MySQL thread.
&reftitle.parameters;
connection
Mysqlnd connection handle. Do not modify!
pid
Thread Id of the connection to be killed.
&reftitle.returnvalues;
Returns &true; on success.
Otherwise, returns &false;
&reftitle.examples;
MysqlndUhConnection::kill example
kill($mysqli->thread_id);
?>
]]>
&example.outputs;
NULL,
1 => 27650,
))
proxy::killConnection returns true
]]>
&reftitle.seealso;
mysqlnd_uh_set_connection_proxy
mysqli_kill