1
0
Fork 0

Ignore ICU CDLR version fetching when ICU cannot initialize the resource bundle, fixes #11492

pull/11500/head
Jordi Boggiano 2023-06-07 16:19:44 +02:00
parent 3ae662f4c7
commit ff67cdf6e6
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 2 deletions

View File

@ -333,8 +333,10 @@ class PlatformRepository extends ArrayRepository
// Add a separate version for the CLDR library version
if ($this->runtime->hasClass('ResourceBundle')) {
$cldrVersion = $this->runtime->invoke(['ResourceBundle', 'create'], ['root', 'ICUDATA', false])->get('Version');
$this->addLibrary('icu-cldr', $cldrVersion, 'ICU CLDR project version');
$resourceBundle = $this->runtime->invoke(['ResourceBundle', 'create'], ['root', 'ICUDATA', false]);
if ($resourceBundle !== null) {
$this->addLibrary('icu-cldr', $resourceBundle->get('Version');, 'ICU CLDR project version');
}
}
if ($this->runtime->hasClass('IntlChar')) {