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

Incorrect SQL / PHP time when debug.sql_explain is enabled

XMLWordPrintable

      When debug.sql_explain parameter is enabled, incorrect SQL / PHP time is displayed (SQL time is always 0.000 while PHP time is always equal to the total time).

      If debug.sql_explain param is disabled, the time is correct (because no DBAL involved into calculation).

      It seems that there-s a problem with $this->sql_time in the function SQL_report() is not incremented for every SQL query (or set to 0 at the start for every function call).

      debug.load_time is enabled for both cases.

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: