__destruct() public méthode

Disconnects from the server and destroys the underlying resource when PHP's garbage collector kicks in.
public __destruct ( )
Exemple #1
0
 /**
  * Disconnects from the server and destroys the underlying resource and the
  * protocol reader resource when PHP's garbage collector kicks in.
  */
 public function __destruct()
 {
     phpiredis_reader_destroy($this->reader);
     parent::__destruct();
 }