/** * Close the process * @return void */ public function close() { parent::close(); $this->closeWrite(); if (is_resource($this->pd)) { proc_close($this->pd); } }
/** * Close the connection * @return void */ public function close() { parent::close(); if (is_resource($this->fd)) { socket_close($this->fd); } }