本文整理汇总了PHP中phpiredis_reader_destroy函数的典型用法代码示例。如果您正苦于以下问题:PHP phpiredis_reader_destroy函数的具体用法?PHP phpiredis_reader_destroy怎么用?PHP phpiredis_reader_destroy使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了phpiredis_reader_destroy函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __destruct
/**
* Disconnects from the server and destroys the underlying resource when
* PHP's garbage collector kicks in.
*/
public function __destruct()
{
phpiredis_reader_destroy($this->reader);
if ($this->isConnected()) {
$this->disconnect();
}
}
示例2: __destruct
/**
* Frees the underlying cURL and protocol reader resources when PHP's
* garbage collector kicks in.
*/
public function __destruct()
{
curl_close($this->_resource);
phpiredis_reader_destroy($this->_reader);
}
示例3: __destruct
/**
* Disconnects from the server and destroys the underlying resource and the
* protocol reader resource when PHP's garbage collector kicks in.
*/
public function __destruct()
{
phpiredis_reader_destroy($this->reader);
parent::__destruct();
}