1--TEST--
2MessageFormatter::format() given negative arg key
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
11$fmt = <<<EOD
12{foo,number,percent}
13EOD;
14
15$mf = new MessageFormatter('en_US', $fmt);
16var_dump($mf->format(array("foo" => 7, -1 => "bar")));
17--EXPECTF--
18Warning: MessageFormatter::format(): Found negative or too large array key in %s on line %d
19bool(false)
20