Oracle 5.0 Reference Manual page 2730

Table of Contents

Advertisement

The mysqlnd user handler plugin can be understood as a client-side proxy for all PHP MySQL
extensions (mysqli, mysql, PDO_MYSQL), if they are compiled to use the
extensions use the
PECL/mysqlnd_uh allows it to hook many
extensions can be monitored.
Because monitoring happens at the level of the library, at a layer below the application, it is possible to
monitor applications without changing them.
On the C level, the
all methods of the
class MysqlndUhConnection. Some few methods of the mysqlnd internal
made available to the PHP user with the class MysqlndUhPreparedStatement. By subclassing
the classes
internal function calls.
mysqlnd
20.7.8.4.1. Setup
Copyright 1997-2012 the PHP Documentation Group. [2230]
The plugin is implemented as a PHP extension. See the
mysqlnd_uh
configuration file using the PHP configuration directive named mysqlnd_uh.enable. The below example
shows the default settings of the extension.
Example 20.329. Enabling the plugin (php.ini)
mysqlnd_uh.enable=1
mysqlnd_uh.report_wrong_types=1
20.7.8.4.2. How it works
Copyright 1997-2012 the PHP Documentation Group. [2230]
This describes the background and inner workings of the mysqlnd_uh extension.
Two classes are provided by the extension:
MysqlndUhPreparedStatement.
the
mysqlnd
internal
statement
library C function mysqlnd_conn__connect.
As a mysqlnd plugin, the PECL/mysqlnd_uh extension replaces
own functions. Whenever a PHP MySQL extension compiled to use
the functions installed by the plugin are executed instead of the original
mysqli_connect
Mysqlnd user handler plugin (mysqlnd_uh)
library internally, at the C level, to communicate with the MySQL server.
mysqlnd
library is structured in modules or classes. The extension hooks almost
mysqlnd
internal
mysqlnd
MysqlndUhConnection
Note
The internal
mysqlnd
PHP user. Manipulating their activities may cause PHP to crash or leak
memory. Often, this is not considered a bug. Please, keep in mind that you are
accessing C library functions through PHP which are expected to take certain
actions, which you may not be able to emulate in user space. Therefore, it is
strongly recommended to always call the parent method implementation when
subclassing
MysqlndUhConnection
To prevent the worst case, the extension performs some sanity checks. Please,
see also the
Mysqlnd_uh Configure
extension. Then, load the extension into PHP and activate the plugin in the PHP
internal
connection
class. For example,
invokes mysqlnd_conn__connect, so the connect function installed by PECL/
calls. Therefore, most activities of the PHP MySQL
mysqlnd
class and exposes them through the user space
connection
and
MysqlndUhPreparedStatement
function calls are not designed to be exposed to the
or MysqlndUhPreparedStatement.
Options.
installation instructions
MysqlndUhConnection
MysqlndUhConnection
class. The latter exposes some selected methods of the
MysqlndUhConnection::connect
2710
mysqlnd
library. The
statement
users get access to
to install the
and
lets you access almost all methods of
maps to the
library C functions with its
mysqlnd
calls a mysqlnd function,
mysqlnd
ones. For example,
mysqlnd
class are
PECL/
mysqlnd
mysqlnd

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents