From ea2187e1a8132d4c2a60997a648ca91dc3ae95f8 Mon Sep 17 00:00:00 2001 From: kit rio Date: Thu, 19 May 2022 17:38:49 +0900 Subject: [PATCH] =?UTF-8?q?PHP=208.1=20=EB=B6=80=ED=84=B0=20deprecate=20?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=ED=95=B4=EC=8B=9C=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 그누보드5는 PHP 5.2.17 부터 지원이라 무관합니다 --- shop/inicis/libs/sha256.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/shop/inicis/libs/sha256.inc.php b/shop/inicis/libs/sha256.inc.php index 72386947b..145c473b5 100644 --- a/shop/inicis/libs/sha256.inc.php +++ b/shop/inicis/libs/sha256.inc.php @@ -46,6 +46,7 @@ * Ability to define "_NANO_SHA2_UPPER" to yeild upper case hashes. * 2009-08-01: Added ability to attempt to use mhash() prior to running pure * php code. + * 2022-05-19: PHP 8.1 부터 deprecate 되는 mhash() 삭제 * * NOTE: Some sporadic versions of PHP do not handle integer overflows the * same as the majority of builds. If you get hash results of: @@ -211,11 +212,7 @@ if (!class_exists('nanoSha2')) // check for php's internal sha256 function, ignore if ig_func==true if ($ig_func == false) { - if (version_compare(PHP_VERSION,'5.1.2','>=')) { return hash("sha256", $str, false); - } else if (function_exists('mhash') && defined('MHASH_SHA256')) { - return base64_encode(bin2hex(mhash(MHASH_SHA256, $str))); - } } /*