diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index abd720cd..c58ee7f1 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -20,7 +20,7 @@ if (!$error && $_POST) { $query = get_file("sql_file", true); } if (is_string($query)) { // get_file() returns error as number, fread() as false - @ini_set("memory_limit", 2 * strlen($query) + memory_get_usage() + 2e6); // @ - may be disabled, 2 - substr and trim, 2e6 - other variables + @ini_set("memory_limit", 2 * strlen($query) + memory_get_usage() + 8e6); // @ - may be disabled, 2 - substr and trim, 8e6 - other variables if (strlen($query) && strlen($query) < 1e6 && (!$history || end($history) != $query)) { // don't add repeated and big queries $history[] = $query; }