From 790a755232036d877b657b8083373a75c19ad123 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sun, 21 Apr 2019 21:55:50 +0200 Subject: [PATCH] Fix setupcheck for intl module A polyfill for intl is loaded very early (somewhere in base). Polyfill defines grapheme_strlen as function if intl extension is not loaded. The check here is always true because there is a function with that name. Signed-off-by: Daniel Kesselberg --- settings/Controller/CheckSetupController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index 5f355d0ec2f..f1da8406edb 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -574,7 +574,7 @@ Raw output protected function hasRecommendedPHPModules(): array { $recommendedPHPModules = []; - if (!function_exists('grapheme_strlen')) { + if (!extension_loaded('intl')) { $recommendedPHPModules[] = 'intl'; } -- 2.39.5