backported some ext/intl tests from 5.6 into 5.4