Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-8980

endless loop: sql_fetchfield() on cached SQL query

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.0.7
    • Component/s: Caching (ACM)
    • Labels:
      None
    • Environment:
      PHP Environment:
      Database:

      Description

      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); 

        Attachments

          Activity

            People

            • Assignee:
              bantu Andreas Fischer
              Reporter:
              bantu Andreas Fischer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: