Oracle 5.0 Reference Manual page 2781

Table of Contents

Advertisement

Return Values
Returns
TRUE
Examples
Example 20.366.
<?php
class 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());
?>
The above example will output:
proxy::queryReadResultsetHeader(array (
0 => NULL,
1 => NULL,
))
proxy::queryReadResultsetHeader returns true
array(1) {
["Welcome mysqlnd_uh!"]=>
string(19) "Welcome mysqlnd_uh!"
}
See Also
mysqlnd_uh_set_connection_proxy
20.7.8.7.32.
MysqlndUhConnection::reapQuery
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::reapQuery
Get result from async query
Description
public bool MysqlndUhConnection::reapQuery(
mysqlnd_connection connection);
Get result from async query.
Parameters
connection
Return Values
Mysqlnd user handler plugin (mysqlnd_uh)
on success. Otherwise, returns
MysqlndUhConnection::queryReadResultsetHeader
Mysqlnd connection handle. Do not modify!
FALSE
2761
example

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents