1--TEST--
2MessageFormatter::format() invalid type for key not in pattern
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9$fmt = <<<EOD
10{foo}
11EOD;
12
13$mf = new MessageFormatter('en_US', $fmt);
14var_dump($mf->format(array("foo" => 'bar', 7 => fopen('php://memory', 'r+'))));
15?>
16--EXPECTF--
17Warning: MessageFormatter::format(): No strategy to convert the value given for the argument with key '7' is available in %s on line %d
18bool(false)
19