From 64025391288400d5bea628978ba913f4656ed80f Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Mon, 3 Oct 2022 14:22:23 +0100
Subject: [PATCH] Issue #3313191 by immaculatexavier, alexpott, longwave:
 mbstring.func_overload is removed in PHP 8 therefore remove it from core

---
 core/lib/Drupal/Component/Utility/Unicode.php | 3 ---
 core/modules/system/system.install            | 4 ----
 2 files changed, 7 deletions(-)

diff --git a/core/lib/Drupal/Component/Utility/Unicode.php b/core/lib/Drupal/Component/Utility/Unicode.php
index 50e692104195..3217aa35454d 100644
--- a/core/lib/Drupal/Component/Utility/Unicode.php
+++ b/core/lib/Drupal/Component/Utility/Unicode.php
@@ -131,9 +131,6 @@ public static function check() {
     }
 
     // Check mbstring configuration.
-    if (ini_get('mbstring.func_overload') != 0) {
-      return 'mbstring.func_overload';
-    }
     if (ini_get('mbstring.encoding_translation') != 0) {
       return 'mbstring.encoding_translation';
     }
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index 3f252f765369..41d0b4fe30ad 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -1204,10 +1204,6 @@ function system_requirements($phase) {
       $requirements['unicode']['description'] = t('Operations on Unicode strings are emulated on a best-effort basis. Install the <a href="http://php.net/mbstring">PHP mbstring extension</a> for improved Unicode support.');
       break;
 
-    case 'mbstring.func_overload':
-      $requirements['unicode']['description'] = t('Multibyte string function overloading in PHP is active and must be disabled. Check the php.ini <em>mbstring.func_overload</em> setting. Please refer to the <a href="http://php.net/mbstring">PHP mbstring documentation</a> for more information.');
-      break;
-
     case 'mbstring.encoding_translation':
       $requirements['unicode']['description'] = t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.encoding_translation</em> setting. Please refer to the <a href="http://php.net/mbstring">PHP mbstring documentation</a> for more information.');
       break;
-- 
GitLab