remove magic function setting checks, PHP 7.4 drops these settings

This commit is contained in:
bwdutton
2020-05-24 14:31:33 -07:00
parent ffd2c13d6c
commit 939bbfa4cc

View File

@@ -65,20 +65,6 @@ class Input_Core {
if (Input::$instance === NULL)
{
// magic_quotes_runtime is enabled
if (get_magic_quotes_runtime())
{
@set_magic_quotes_runtime(0);
Kohana_Log::add('debug', 'Disable magic_quotes_runtime! It is evil and deprecated: http://php.net/magic_quotes');
}
// magic_quotes_gpc is enabled
if (get_magic_quotes_gpc())
{
$this->magic_quotes_gpc = TRUE;
Kohana_Log::add('debug', 'Disable magic_quotes_gpc! It is evil and deprecated: http://php.net/magic_quotes');
}
if (is_array($_GET))
{
foreach ($_GET as $key => $val)