From 2085e1a52918f54b35f9a00d1111a49ff89a8fde Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Mon, 21 Feb 2022 21:07:08 +0100
Subject: [PATCH] Document intl as a required extension

---
 docs/simplesamlphp-install.md           | 2 +-
 modules/admin/lib/Controller/Config.php | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/simplesamlphp-install.md b/docs/simplesamlphp-install.md
index 64c02c1e0..fc16ae8ac 100644
--- a/docs/simplesamlphp-install.md
+++ b/docs/simplesamlphp-install.md
@@ -21,7 +21,7 @@ Prerequisites
  * A web server capable of executing PHP scripts.
  * PHP version >= 7.2.0.
  * Support for the following PHP extensions:
-   * Always required: `date`, `dom`, `hash`, `libxml`, `openssl`, `pcre`, `SPL`, `zlib`, `json`, `mbstring`
+   * Always required: `date`, `dom`, `hash`, `intl`, `json`, `libxml`, `mbstring`, `openssl`, `pcre`, `SPL`, `zlib`
    * When automatically checking for latest versions, and used by some modules: `cURL`
    * When authenticating against an LDAP server: `ldap`
    * When authenticating against a RADIUS server: `radius`
diff --git a/modules/admin/lib/Controller/Config.php b/modules/admin/lib/Controller/Config.php
index 1d6ed78fc..42d0b580e 100644
--- a/modules/admin/lib/Controller/Config.php
+++ b/modules/admin/lib/Controller/Config.php
@@ -238,6 +238,12 @@ class Config
                     'required' => Translate::noop('Regular expression support'),
                 ]
             ],
+            'intl_get_error_code' => [
+                'required' => 'required',
+                'descr' => [
+                    'required' => Translate::noop('PHP intl extension'),
+                ]
+            ],
             'json_decode' => [
                 'required' => 'required',
                 'descr' => [
-- 
GitLab