-
Bug
-
Resolution: Fixed
-
Major
-
3.0.13-PL1, 3.1.1
-
None
-
None
Split from https://tracker.phpbb.com/browse/PHPBB3-13298
phpBB/phpbb/feed/base.php
function get_item()
|
{
|
static $result;
|
|
if (!isset($result))
|
{
|
if (!$this->get_sql())
|
{
|
return false;
|
}
|
|
// Query database
|
$sql = $this->db->sql_build_query('SELECT', $this->sql);
|
$result = $this->db->sql_query_limit($sql, $this->num_items);
|
}
|
|
return $this->db->sql_fetchrow($result);
|
}
|
If we free the result when we reach the end, the next call will just query the db again. So this needs a bit investigating to make sure it does not happen.
- is related to
-
PHPBB-13298 Use mysql_free_result to free result sets which were requested using mysql_query()
- Closed