I'm trying to set the locale based on the user's browser preferences from the Accept-Language header. If the first preference doesn't work, because the locale is not available, I want to fall back to the next one. So I need to know whether setlocale() genuinely succeeded. If the intl extension is installed then I can test as above, but if not?