1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Fix compatibility with PHP 8

This commit is contained in:
David Grudl
2020-10-20 21:04:33 +02:00
committed by Jakub Vrana
parent 697eedc6a1
commit 50bb83dbf2
5 changed files with 21 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
<?php
error_reporting(6135); // errors and warnings
error_reporting(6133); // errors
include "../adminer/include/coverage.inc.php";
@@ -60,7 +60,7 @@ if (!defined("SID")) {
// disable magic quotes to be able to use database escaping function
remove_slashes(array(&$_GET, &$_POST, &$_COOKIE), $filter);
if (get_magic_quotes_runtime()) {
if (function_exists("get_magic_quotes_runtime") && get_magic_quotes_runtime()) {
set_magic_quotes_runtime(false);
}
@set_time_limit(0); // @ - can be disabled