Oracle 5.0 Reference Manual page 2762

Table of Contents

Advertisement

The above example will output:
proxy::getSqlstate(array (
0 => NULL,
))
proxy::getSqlstate returns '00000'
string(5) "00000"
proxy::getSqlstate(array (
0 => NULL,
))
proxy::getSqlstate returns '42000'
string(5) "42000"
See Also
mysqlnd_uh_set_connection_proxy
mysqli_sql_state
20.7.8.7.20.
MysqlndUhConnection::getStatistics
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::getStatistics
Returns statistics about the client connection.
Description
public array MysqlndUhConnection::getStatistics(
mysqlnd_connection connection);
Returns statistics about the client connection.
Parameters
connection
Return Values
Connection statistics collected by mysqlnd.
Examples
Example 20.355.
<?php
class proxy extends MysqlndUhConnection {
public function getStatistics($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::getStatistics($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");
var_dump($mysqli->get_connection_stats());
?>
Mysqlnd user handler plugin (mysqlnd_uh)
Warning
This function is currently not documented; only its argument list is available.
Mysqlnd connection handle. Do not modify!
MysqlndUhConnection::getStatistics
example
2742

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents