1--TEST--
2MessageFormatter::format() given negative arg key
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9$fmt = <<<EOD
10{foo,number,percent}
11EOD;
12
13$mf = new MessageFormatter('en_US', $fmt);
14var_dump($mf->format(array("foo" => 7, -1 => "bar")));
15?>
16--EXPECTF--
17Warning: MessageFormatter::format(): Found negative or too large array key in %s on line %d
18bool(false)
19