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