21.9.8. Mysqlnd user handler plugin (mysqlnd_uh)

21.9.8.1. Security considerations
21.9.8.2. Documentation note
21.9.8.3. On the name
21.9.8.4. Quickstart and Examples
21.9.8.5. Installing/Configuring
21.9.8.6. Predefined Constants
21.9.8.7. The MysqlndUhConnection class (MysqlndUhConnection)
21.9.8.8. The MysqlndUhPreparedStatement class (MysqlndUhPreparedStatement)
21.9.8.9. Mysqlnd_uh Functions
21.9.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.