本文整理汇总了PHP中mysqli_result::free_result方法的典型用法代码示例。如果您正苦于以下问题:PHP mysqli_result::free_result方法的具体用法?PHP mysqli_result::free_result怎么用?PHP mysqli_result::free_result使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mysqli_result
的用法示例。
在下文中一共展示了mysqli_result::free_result方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: freeResult
/**
* Очищение результатов
*/
protected function freeResult()
{
if ($this->query_result !== null) {
$this->query_result->free_result();
$this->query_result = null;
}
$this->result = null;
}
示例2: flush
/**
* Free memory associated with the resultset
*
* @return void
*/
public function flush()
{
if ($this->result instanceof mysqli_stmt) {
$this->result->free_result();
}
$this->result = null;
$this->col_info = null;
// Sanity check before using the handle
if (empty($this->dbh) || !$this->dbh instanceof mysqli) {
return;
}
// Clear out any results from a multi-query
while (mysqli_more_results($this->dbh)) {
mysqli_next_result($this->dbh);
}
}
示例3: free
function free()
{
$this->result->free_result();
}
示例4: free_result
/**
* @param mysqli_result $query_id
* @return bool
*/
public function free_result($query_id)
{
if ($query_id) {
$query_id->free_result();
}
}
示例5: close
/**
* @return bool
*/
public function close()
{
return $this->result->free_result();
}
示例6: free
/**
* @param mysqli_result $result
* @return mixed
*/
public function free($result)
{
return $result->free_result();
}
示例7: mysqlFreeResult
/**
* @param mysqli_result $res
* @return bool
*/
protected function mysqlFreeResult($res)
{
Assert::true($res instanceof mysqli_result, __METHOD__);
$res->free_result();
return true;
}
示例8: freeResult
/**
* Frees the memory from the result
* Call it after you're done with a result set
*
* @return static
*/
public function freeResult()
{
$this->result->free_result();
return $this;
}