Oracle 5.0 Reference Manual page 2771

Table of Contents

Advertisement

Description
public int MysqlndUhConnection::getWarningCount(
mysqlnd_connection connection);
Returns the number of warnings from the last query for the given link.
Parameters
connection
Return Values
Number of warnings.
Examples
Example 20.357.
<?php
class proxy extends MysqlndUhConnection {
public function getWarningCount($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::getWarningCount($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->warning_count);
?>
The above example will output:
proxy::getWarningCount(array (
0 => NULL,
))
proxy::getWarningCount returns 0
int(0)
See Also
mysqlnd_uh_set_connection_proxy
mysqli_warning_count
20.7.8.7.23.
MysqlndUhConnection::init
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::init
Initialize mysqlnd connection
Description
public bool MysqlndUhConnection::init(
mysqlnd_connection connection);
Initialize mysqlnd connection. This is an mysqlnd internal call to initialize the connection object.
Mysqlnd user handler plugin (mysqlnd_uh)
Mysqlnd connection handle. Do not modify!
MysqlndUhConnection::getWarningCount
2751
example

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents