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 <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-04-21 21:55:50 +02:00 committed by Backportbot
parent 6781f9fc76
commit 790a755232

View file

@ -574,7 +574,7 @@ Raw output
protected function hasRecommendedPHPModules(): array { protected function hasRecommendedPHPModules(): array {
$recommendedPHPModules = []; $recommendedPHPModules = [];
if (!function_exists('grapheme_strlen')) { if (!extension_loaded('intl')) {
$recommendedPHPModules[] = 'intl'; $recommendedPHPModules[] = 'intl';
} }