本文整理匯總了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;
}