1--TEST-- 2Bug #74484 MessageFormatter::formatMessage memory corruption with 11+ named placeholder 3--SKIPIF-- 4<?php 5if (!extension_loaded('intl')) 6 die('skip intl extension not enabled'); 7if (version_compare(INTL_ICU_VERSION, '4.8') < 0) 8 die('skip for ICU 4.8+'); 9?> 10--FILE-- 11<?php 12$text = "{a} {b} {c} {d} {e} {f} {g} {h} {i} {j} {k} {l}"; 13 14$vars = array( 15 'a' => 1, 16 'b' => 2, 17 'c' => 3, 18 'd' => 4, 19 'e' => 5, 20 'f' => 6, 21 'g' => 7, 22 'h' => 8, 23 'i' => 9, 24 'j' => 10, 25 'k' => 11, 26 'l' => 12 27); 28 29var_dump(MessageFormatter::formatMessage('en_US', $text, $vars)); 30 31?> 32==DONE== 33--EXPECT-- 34string(26) "1 2 3 4 5 6 7 8 9 10 11 12" 35==DONE== 36