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