mysqlnd_uh_set_connection_proxyInstalls a proxy for mysqlnd connections Description
bool mysqlnd_uh_set_connection_proxy
( MysqlndUhConnection
&$connection_proxy
[, mysqli &$mysqli_connection
] )Installs a proxy object to hook mysqlnd's connection objects methods. Once installed, the proxy will be used for all MySQL connections opened with mysqli, mysql or PDO_MYSQL, assuming that the listed extensions are compiled to use the mysqlnd library.
The function can be disabled with
mysqlnd_uh.enable.
If mysqlnd_uh.enable
is set to Parameters
Return Values
Returns Examples
Example #1 mysqlnd_uh_set_connection_proxy example
<?php The above example will output: proxy::query(array ( 0 => NULL, 1 => 'SELECT \'mysqlnd rocks!\'', )) proxy::query returns true proxy::query(array ( 0 => NULL, 1 => 'SELECT \'Ahoy Andrey!\'', )) proxy::query returns true proxy::query(array ( 0 => NULL, 1 => 'SELECT \'Moin Johannes!\'', )) proxy::query returns true |