Oracle 5.0 Reference Manual page 2784

Table of Contents

Advertisement

class proxy extends MysqlndUhConnection {
public function refreshServer($res, $option) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::refreshServer($res, $option);
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_refresh($mysqli, 1);
?>
The above example will output:
proxy::refreshServer(array (
0 => NULL,
1 => 1,
))
proxy::refreshServer returns false
See Also
mysqlnd_uh_set_connection_proxy
20.7.8.7.34.
MysqlndUhConnection::restartPSession
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::restartPSession
Restart a persistent mysqlnd connection
Description
public bool MysqlndUhConnection::restartPSession(
mysqlnd_connection connection);
Restart a persistent mysqlnd connection.
Parameters
connection
Return Values
Returns
TRUE
Examples
Example 20.369.
<?php
class proxy extends MysqlndUhConnection {
public function ping($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::ping($res);
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
on success. Otherwise, returns
MysqlndUhConnection::restartPSession
FALSE
2764
example

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents