From e11b5819763ab1df4264d5321bcd680b578e866a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Tue, 21 May 2019 17:36:44 +0200 Subject: [PATCH] break infinite loop --- src/Symfony/Component/Intl/Locale.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Intl/Locale.php b/src/Symfony/Component/Intl/Locale.php index 9f810235e6f85..f9b3dfb07303a 100644 --- a/src/Symfony/Component/Intl/Locale.php +++ b/src/Symfony/Component/Intl/Locale.php @@ -83,6 +83,10 @@ public static function getFallback($locale) return null; } + if (0 === \count($localSubTags)) { + return null; + } + array_pop($localeSubTags); $fallback = locale_compose($localeSubTags); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy