1--TEST--
2MessageFormatter::format() invalid UTF-8 for arg key or value
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" => 7, "\x80" => "bar")));
15
16var_dump($mf->format(array("foo" => "\x80")));
17?>
18--EXPECTF--
19Warning: MessageFormatter::format(): Invalid UTF-8 data in argument key: '�' in %s on line %d
20bool(false)
21
22Warning: MessageFormatter::format(): Invalid UTF-8 data in string argument: '�' in %s on line %d
23bool(false)
24