PHP 7
This commit is contained in:
parent
93a87c8f6f
commit
8a6ba88689
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue