Is the formatCurrency method of the NumberFormatter class in PHP working properly for you or does it return things like “NaN” and “¤¤¤”?
This is probably PHP bug #54538 that actually is ICU bug #8561 that might be the same as ICU bug #8214.
I have worked around it by being more careful about what locales are allowed.