Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-8980

endless loop: sql_fetchfield() on cached SQL query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.0.7
    • 3.0.6
    • Caching (ACM)
    • None
    • PHP Environment:
      Database:

      The following code produces an endless loop.

      $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE;$result = $db->sql_query($sql, 300);$forum_ids = array();while ($forum_id = (int) $db->sql_fetchfield('forum_id')){      $forum_ids[$forum_id] = $forum_id;}$db->sql_freeresult($result); 

            bantu Andreas Fischer [X] (Inactive)
            bantu Andreas Fischer [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: