1--TEST--
2MessageFormatter::format() invalid type for key not in pattern
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}
13EOD;
14
15$mf = new MessageFormatter('en_US', $fmt);
16var_dump($mf->format(array("foo" => 'bar', 7 => fopen('php://memory', 'r+'))));
17--EXPECTF--
18Warning: MessageFormatter::format(): No strategy to convert the value given for the argument with key '7' is available in %s on line %d
19bool(false)
20