MysqlndUhConnection::sendClose
(PECL mysqlnd-uh >= 1.0.0-alpha)
MysqlndUhConnection::sendClose — Envoi une commande de fermeture à MySQL
Description
   public bool MysqlndUhConnection::sendClose
    ( mysqlnd_connection 
  $connection
   )Envoi une commande de fermeture à MySQL.
Liste de paramètres
- 
    connection
- 
     Gestionnaire de connexion Mysqlnd. Ne pas modifier ! 
Valeurs de retour
   Retourne TRUE en cas de succès, FALSE sinon.
  
Exemples
Exemple #1 Exemple avec MysqlndUhConnection::sendClose()
<?php
class proxy extends MysqlndUhConnection {
 public function sendClose($res) {
  printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
  $ret = parent::sendClose($res);
  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");
$mysqli->close();
?>L'exemple ci-dessus va afficher :
proxy::sendClose(array ( 0 => NULL, )) proxy::sendClose returns true proxy::sendClose(array ( 0 => NULL, )) proxy::sendClose returns true
