/** * Очищение результатов */ protected function freeResult() { if ($this->query_result !== null) { $this->query_result->free_result(); $this->query_result = null; } $this->result = null; }
/** * 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); } }
function free() { $this->result->free_result(); }
/** * @param mysqli_result $query_id * @return bool */ public function free_result($query_id) { if ($query_id) { $query_id->free_result(); } }
/** * @return bool */ public function close() { return $this->result->free_result(); }
/** * @param mysqli_result $result * @return mixed */ public function free($result) { return $result->free_result(); }
/** * @param mysqli_result $res * @return bool */ protected function mysqlFreeResult($res) { Assert::true($res instanceof mysqli_result, __METHOD__); $res->free_result(); return true; }
/** * 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; }