From ee8f9b0dba8afd6fd736a0bf8601c3e5cd3b9e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 17 Feb 2016 10:46:23 +0100 Subject: [PATCH] Always use local static storage of executed queries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #11850 Signed-off-by: Michal Čihař --- libraries/import.lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/import.lib.php b/libraries/import.lib.php index 8e4f19e164..172a21d7af 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -156,13 +156,16 @@ function PMA_executeQuery($sql, $full, &$sql_data) * * @param string $sql query to run * @param string $full query to display, this might be commented - * @param array &$sql_data SQL parse data storage * * @return void * @access public */ -function PMA_importRunQuery($sql = '', $full = '', &$sql_data = array()) +function PMA_importRunQuery($sql = '', $full = '') { + /** + * @var $sql_data SQL parse data storage + */ + static $sql_data = array(); global $import_run_buffer, $go_sql, $complete_query, $display_query, $sql_query, $error, $reload, $result, $msg, $skip_queries, $executed_queries, $max_sql_len, $read_multiply,