Oracle 5.0 Reference Manual page 2758

Table of Contents

Advertisement

Return Values
The protocol version.
Examples
Example 20.350.
<?php
class proxy extends MysqlndUhConnection {
public function getProtocolInformation($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::getProtocolInformation($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->protocol_version);
?>
The above example will output:
proxy::getProtocolInformation(array (
0 => NULL,
))
proxy::getProtocolInformation returns 10
int(10)
See Also
mysqlnd_uh_set_connection_proxy
mysqli_get_proto_info
mysql_get_proto_info
20.7.8.7.16.
MysqlndUhConnection::getServerInformation
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::getServerInformation
Returns the version of the MySQL server
Description
public string MysqlndUhConnection::getServerInformation(
mysqlnd_connection connection);
Returns the version of the MySQL server.
Parameters
connection
Return Values
The server version.
Examples
Mysqlnd user handler plugin (mysqlnd_uh)
MysqlndUhConnection::getProtocolInformation
Mysqlnd connection handle. Do not modify!
2738
example

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents