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--EXPECTF--
18Warning: MessageFormatter::format(): Invalid UTF-8 data in argument key: '�' in %s on line %d
19bool(false)
20
21Warning: MessageFormatter::format(): Invalid UTF-8 data in string argument: '�' in %s on line %d
22bool(false)
23