Oracle 5.0 Reference Manual page 2773

Table of Contents

Advertisement

connection
pid
Return Values
Returns
TRUE
Examples
Example 20.359.
<?php
class proxy extends MysqlndUhConnection {
public function killConnection($res, $pid) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::killConnection($res, $pid);
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysqli = new mysqli("localhost", "root", "", "test");
$mysqli->kill($mysqli->thread_id);
?>
The above example will output:
proxy::killConnection(array (
0 => NULL,
1 => 27650,
))
proxy::killConnection returns true
See Also
mysqlnd_uh_set_connection_proxy
mysqli_kill
20.7.8.7.25.
MysqlndUhConnection::listFields
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::listFields
List MySQL table fields
Description
public array MysqlndUhConnection::listFields(
mysqlnd_connection connection,
string table,
string achtung_wild);
List MySQL table fields.
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
Thread Id of the connection to be killed.
on success. Otherwise, returns
MysqlndUhConnection::kill
Warning
This function is currently not documented; only its argument list is available.
FALSE
example
2753

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents