(PECL mysqlnd-uh >= 1.0.0-alpha)
MysqlndUhConnection::queryReadResultsetHeader — Read a result set header
Read a result set header.
Mysqlnd connection handle. Do not modify!
Mysqlnd statement handle. Do not modify! Set to NULL, if function is not used in the context of a prepared statement.
Returns TRUE on success. Otherwise, returns FALSE
Пример #1 MysqlndUhConnection::queryReadResultsetHeader() example
<?phpclass proxy extends MysqlndUhConnection { public function queryReadResultsetHeader($res, $stmt) { printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true)); $ret = parent::queryReadResultsetHeader($res, $stmt); printf("%s returns %s\n", __METHOD__, var_export($ret, true)); return $ret; }}mysqlnd_uh_set_connection_proxy(new proxy());$mysqli = new mysqli("localhost", "root", "", "test");$res = $mysqli->query("SELECT 'Welcome mysqlnd_uh!' FROM DUAL");var_dump($res->fetch_assoc());?>
Результат выполнения данного примера:
proxy::queryReadResultsetHeader(array ( 0 => NULL, 1 => NULL, )) proxy::queryReadResultsetHeader returns true array(1) { ["Welcome mysqlnd_uh!"]=> string(19) "Welcome mysqlnd_uh!" }