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

search for in the

MysqlndUhConnection::selectDb> <MysqlndUhConnection::refreshServer
[edit] Last updated: Fri, 17 May 2013

view this page in

MysqlndUhConnection::restartPSession

(PECL mysqlnd-uh >= 1.0.0-alpha)

MysqlndUhConnection::restartPSessionReinicializa una conexión persistente a mysqlnd

Descripción

public bool MysqlndUhConnection::restartPSession ( mysqlnd_connection $connection )

Reinicializa una conexión persistente a mysqlnd.

Parámetros

connection

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

Valores devueltos

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

Ejemplos

Ejemplo #1 Ejemplo de MysqlndUhConnection::restartPSession()

<?php
class proxy extends MysqlndUhConnection {
 public function 
ping($res) {
  
printf("%s(%s)\n"__METHOD__var_export(func_get_args(), true));
  
$ret parent::ping($res);
  
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->ping();
?>

El resultado del ejemplo sería:

proxy::restartPSession(array (
  0 => NULL,
))
proxy::restartPSession returns true

Ver también



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

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