update : 2015.11.03
php.shukuma.com검색:
|
mysqlnd_uh_set_connection_proxy(PECL mysqlnd-uh >= 1.0.0-alpha) mysqlnd_uh_set_connection_proxy — Installs a proxy for mysqlnd connections 설명
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 인수
반환값
Returns 예제
Example #1 mysqlnd_uh_set_connection_proxy() example
<?php 위 예제의 출력: 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 |