Oracle 5.0 Reference Manual page 2772

Table of Contents

Advertisement

Parameters
connection
Return Values
Returns
TRUE
Examples
Example 20.358.
<?php
class proxy extends MysqlndUhConnection {
public function init($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::init($res);
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");
?>
The above example will output:
proxy::init(array (
0 => NULL,
))
proxy::init returns true
See Also
mysqlnd_uh_set_connection_proxy
20.7.8.7.24.
MysqlndUhConnection::killConnection
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::killConnection
Asks the server to kill a MySQL thread
Description
public bool MysqlndUhConnection::killConnection(
mysqlnd_connection connection,
int pid);
Asks the server to kill a MySQL thread.
Parameters
Mysqlnd user handler plugin (mysqlnd_uh)
Note
Failing to call the parent implementation may cause memory leaks or crash
PHP. This is not considered a bug. Please, keep in mind that the
library functions have never been designed to be exposed to the user space.
Mysqlnd connection handle. Do not modify!
on success. Otherwise, returns
MysqlndUhConnection::init
FALSE
example
2752
mysqlnd

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents