Ejemplo n.º 1
0
 /**
  * Automatically frees the resources allocated for this result set.
  * @return void
  */
 public function __destruct()
 {
     // disconnects and rolls back transaction - do not rely on auto-disconnect and rollback!
     $this->connected && $this->driver->getResource() && $this->disconnect();
 }