Oracle 5.0 Reference Manual page 2749

Table of Contents

Advertisement

Example 20.341.
<?php
class proxy extends MysqlndUhConnection {
public function endPSession($conn) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::endPSession($conn);
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysqli = new mysqli("p:localhost", "root", "", "test");
$mysqli->close();
?>
The above example will output:
proxy::endPSession(array (
0 => NULL,
))
proxy::endPSession returns true
See Also
mysqlnd_uh_set_connection_proxy
20.7.8.7.7.
MysqlndUhConnection::escapeString
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::escapeString
Escapes special characters in a string for use in an SQL statement, taking into account the current
charset of the connection
Description
public string MysqlndUhConnection::escapeString(
mysqlnd_connection connection,
string escape_string);
Escapes special characters in a string for use in an SQL statement, taking into account the current
charset of the connection.
Parameters
MYSQLND_UH_RES_MYSQLND_NAME
escape_string
Return Values
The escaped string.
Examples
Example 20.342.
<?php
Mysqlnd user handler plugin (mysqlnd_uh)
MysqlndUhConnection::endPSession
Mysqlnd connection handle. Do not modify!
The string to be escaped.
MysqlndUhConnection::escapeString
example
example
2729

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents