blob: 4523613c777f85dbf16b27cf9b6cfec77a943ea4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
MessageFormatter::format() insufficient numeric arguments
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$fmt = <<<EOD
{0} {1}
EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array(7)));
?>
--EXPECT--
string(5) "7 {1}"
|