20.7.8. Mysqlnd user handler plugin (mysqlnd_uh)

20.7.8.1. Security considerations
20.7.8.2. Documentation note
20.7.8.3. On the name
20.7.8.4. Quickstart and Examples
20.7.8.5. Installing/Configuring
20.7.8.6. Predefined Constants
20.7.8.7. The MysqlndUhConnection class (MysqlndUhConnection)
20.7.8.8. The MysqlndUhPreparedStatement class (MysqlndUhPreparedStatement)
20.7.8.9. Mysqlnd_uh Functions
20.7.8.10. Change History

Copyright 1997-2012 the PHP Documentation Group.

The mysqlnd user handler plugin (mysqlnd_uh) allows users to set hooks for most internal calls of the MySQL native driver for PHP (mysqlnd). Mysqlnd and its plugins, including PECL/mysqlnd_uh, operate on a layer beneath the PHP MySQL extensions. A mysqlnd plugin can be considered as a proxy between the PHP MySQL extensions and the MySQL server as part of the PHP executable on the client-side. Because the plugins operates on their own layer below the PHP MySQL extensions, they can monitor and change application actions without requiring application changes. If the PHP MySQL extensions (mysqli, mysql, PDO_MYSQL) are compiled to use mysqlnd this can be used for:

The MySQL native driver for PHP (mysqlnd) features an internal plugin C API. C plugins, such as the mysqlnd user handler plugin, can extend the functionality of mysqlnd. PECL/mysqlnd_uh makes parts of the internal plugin C API available to the PHP user for plugin development with PHP.

Status

The mysqlnd user handler plugin is in alpha status. Take appropriate care before using it in production environments.