public function __destruct() { if ($this->wlink) { $this->wlink = NULL; } if ($this->rlink) { $this->rlink = NULL; } }