downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

MysqlndUhConnection::restartPSession> <MysqlndUhConnection::reapQuery
[edit] Last updated: Fri, 17 May 2013

view this page in

MysqlndUhConnection::refreshServer

(PECL mysqlnd-uh >= 1.0.0-alpha)

MysqlndUhConnection::refreshServerVacía o reinicia las tablas y las cachés

Descripción

public bool MysqlndUhConnection::refreshServer ( mysqlnd_connection $connection , int $options )

Vacía o reinicia las tablas y las cachés.

Advertencia

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Parámetros

connection

Gestor de conexión de mysqlnd. ¡No modificar!

options

Lo que refrescar.

Valores devueltos

Devuelve TRUE en caso de éxito. De lo contrario, devuelve FALSE

Ejemplos

Ejemplo #1 Ejemplo de MysqlndUhConnection::refreshServer()

<?php
class proxy extends MysqlndUhConnection {
 public function 
refreshServer($res$option) {
  
printf("%s(%s)\n"__METHOD__var_export(func_get_args(), true));
  
$ret parent::refreshServer($res$option);
  
printf("%s returns %s\n"__METHOD__var_export($rettrue));
  return 
$ret;
 }
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysqli = new mysqli("localhost""root""""test");
mysqli_refresh($mysqli1);
?>

El resultado del ejemplo sería:

proxy::refreshServer(array (
  0 => NULL,
  1 => 1,
))
proxy::refreshServer returns false

Ver también



add a note add a note User Contributed Notes MysqlndUhConnection::refreshServer - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites