The current language fallback loop detection code (in languages/Language.php) actually doesn't detect a loop, but rather stops a fallback chain when it gets larger than 5 items. It would be more logical (and more flexible) to keep track of what languages have been "visited" and break the loop if we return to one of them. In any case, it wouldn't be possible to build an infinite chain of unique language codes, so no arbitrary limit to feedback chains needs to be enforced.
Version: unspecified
Severity: enhancement