public function __clone() { $this->thread = null; $this->socket = null; $this->pipe = null; $this->channel = null; $this->oid = 0; }