function Close()
{
if ($this->_socket === false) {
$this->_error = 'not connected';
return false;
}
fclose($this->_socket);
$this->_socket = false;
return true;
}
/** * Close Sphinx persistent connection. * * @throws ESphinxException if client is not connected. * @link http://sphinxsearch.com/docs/current.html#api-func-close */ public function closeConnection() { if (!$this->isConnected) { throw new ESphinxException("Sphinx client is already closed"); } $this->sphinxClient->Close(); $this->isConnected = false; }