From c400265964d7de1aebb6245aa1a87bb128191be1 Mon Sep 17 00:00:00 2001 From: Jeremy Booker Date: Mon, 31 May 2021 11:35:03 -0400 Subject: [PATCH] Remove check for 'magic_quotes' config in Setup. The 'get_magic_quotes_*' methods are deprecated in php 7.4 and removed in php 8. --- setup/class/Setup.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/setup/class/Setup.php b/setup/class/Setup.php index 67674379a..1f470f333 100644 --- a/setup/class/Setup.php +++ b/setup/class/Setup.php @@ -898,12 +898,6 @@ public function checkServerSettings() $test['globals']['name'] = 'Register globals disabled'; $test['globals']['crit'] = false; - $test['magic_quotes']['pass'] = !get_magic_quotes_gpc() && !get_magic_quotes_runtime(); - $test['magic_quotes']['fail'] = dgettext('core', - 'Magic quotes is enabled. Please disable it in your php.ini file.'); - $test['magic_quotes']['name'] = 'Magic quotes disabled'; - $test['magic_quotes']['crit'] = true; - foreach ($test as $test_section => $val) { if (!$val['pass']) { if ($val['crit']) {