Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Mar 28, 2015
2 parents d499123 + 778ea5f commit 772280b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/sql.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,9 @@ function PMA_storeTheQueryAsBookmark($db, $bkm_user, $sql_query_for_bookmark,
*/
function PMA_executeQueryAndStoreResults($full_sql_query)
{
// close session in case the query takes too long
session_write_close();

// Measure query time.
$querytime_before = array_sum(explode(' ', microtime()));

Expand All @@ -1114,6 +1117,9 @@ function PMA_executeQueryAndStoreResults($full_sql_query)
);
$querytime_after = array_sum(explode(' ', microtime()));

// reopen session
session_start();

$GLOBALS['querytime'] = $querytime_after - $querytime_before;

return $result;
Expand Down

0 comments on commit 772280b

Please sign in to comment.