From 8a6ba88689ed345113a7b2d82c27ad20e1b2df4f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 26 Oct 2015 19:47:25 +0000 Subject: [PATCH] PHP 7 --- lam/lib/fpdf.php | 3 --- lam/templates/3rdParty/pla/lib/emuhash_functions.php | 8 -------- 2 files changed, 11 deletions(-) diff --git a/lam/lib/fpdf.php b/lam/lib/fpdf.php index 308406ba..6b9a4931 100644 --- a/lam/lib/fpdf.php +++ b/lam/lib/fpdf.php @@ -1050,9 +1050,6 @@ function _dochecks() // Check mbstring overloading if(ini_get('mbstring.func_overload') & 2) $this->Error('mbstring overloading must be disabled'); - // Ensure runtime magic quotes are disabled - if(get_magic_quotes_runtime()) - @set_magic_quotes_runtime(0); } function _checkoutput() diff --git a/lam/templates/3rdParty/pla/lib/emuhash_functions.php b/lam/templates/3rdParty/pla/lib/emuhash_functions.php index 7818f7fb..6a5b1911 100644 --- a/lam/templates/3rdParty/pla/lib/emuhash_functions.php +++ b/lam/templates/3rdParty/pla/lib/emuhash_functions.php @@ -58,11 +58,6 @@ if (! function_exists('mhash') && ! function_exists('mhash_keygen_s2k')) { function openssl_hash($openssl_hash_id,$password_clear) { global $emuhash_emu; - if (PHP_VERSION < 6) { - $current_magic_quotes = @get_magic_quotes_runtime(); - @set_magic_quotes_runtime(0); - } - $tmpfile = tempnam($emuhash_emu['tmpdir'],'emuhash'); $pwhandle = fopen($tmpfile,'w'); @@ -77,9 +72,6 @@ if (! function_exists('mhash') && ! function_exists('mhash_keygen_s2k')) { pclose($prog); unlink($tmpfile); - if (PHP_VERSION < 6) - @set_magic_quotes_runtime($current_magic_quotes); - return $pass; }