This document introduces mysqlnd_uh, a PHP extension that allows extending the mysqlnd PHP extension. It provides the following key points:
- mysqlnd_uh allows hooking into mysqlnd's plugin architecture to modify its behavior through connection and result proxies. This can be used to add custom logging, input validation, or other preprocessing.
- Examples are given showing how to set a custom timezone for all connections through a connection proxy, and how to replace query results with hardcoded data through a result proxy.
- The document outlines mysqlnd's plugin architecture and which core files can be extended, such as mysqlnd.c and mysqlnd_result.c. It also discusses security considerations for proxies.