PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/intl/tests/msgfmt_setPattern_cache.phpt ('MessageFormatter::setPattern() invalidates arg types cache')

Script

1: <?php
2: ini_set
("intl.error_level"E_WARNING);
3:
//ini_set("intl.default_locale", "nl");
4:
5:
$mf = new MessageFormatter('en_US',
6:     
"{0,number} -- {1,ordinal}");
7:     
8:
var_dump($mf->format(array(1.31.3)));
9:
var_dump($mf->format(array(1.31.3)));
10:
$mf->setPattern("{0,ordinal} -- {1,number}");
11:
var_dump($mf->format(array(1.31.3)));
12:
13:
?>
14:
==DONE==
15:

Expected

string(10) "1.3 -- 1st"
string(10) "1.3 -- 1st"
string(10) "1st -- 1.3"
==DONE==

Output

string(13) "1.3 -- 1ˢᵗ"
string(13) "1.3 -- 1ˢᵗ"
string(13) "1ˢᵗ -- 1.3"
==DONE==

Diff

001+ string(13) "1.3 -- 1ˢᵗ"
002+ string(13) "1.3 -- 1ˢᵗ"
003+ string(13) "1ˢᵗ -- 1.3"
001- string(10) "1.3 -- 1st"
002- string(10) "1.3 -- 1st"
003- string(10) "1st -- 1.3"

 

Generated at Tue, 28 Oct 2014 09:43:43 +0000 (3 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.