Oracle 5.0 Reference Manual page 2786

Table of Contents

Advertisement

The above example will output:
proxy::selectDb(array (
0 => NULL,
1 => 'mysql',
))
proxy::selectDb returns true
See Also
mysqlnd_uh_set_connection_proxy
mysqli_select_db
mysql_select_db
20.7.8.7.36.
MysqlndUhConnection::sendClose
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::sendClose
Sends a close command to MySQL
Description
public bool MysqlndUhConnection::sendClose(
mysqlnd_connection connection);
Sends a close command to MySQL.
Parameters
connection
Return Values
Returns
TRUE
Examples
Example 20.371.
<?php
class proxy extends MysqlndUhConnection {
public function sendClose($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::sendClose($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");
$mysqli->close();
?>
The above example will output:
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
on success. Otherwise, returns
MysqlndUhConnection::sendClose
FALSE
example
2766

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents