1--TEST-- 2MessageFormatter::setPattern() invalidates arg types cache 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7ini_set("intl.error_level", E_WARNING); 8//ini_set("intl.default_locale", "nl"); 9 10$mf = new MessageFormatter('en_US', 11 "{0,number} -- {1,ordinal}"); 12 13var_dump($mf->format(array(1.3, 1.3))); 14var_dump($mf->format(array(1.3, 1.3))); 15$mf->setPattern("{0,ordinal} -- {1,number}"); 16var_dump($mf->format(array(1.3, 1.3))); 17 18?> 19--EXPECT-- 20string(10) "1.3 -- 1st" 21string(10) "1.3 -- 1st" 22string(10) "1st -- 1.3" 23