1--TEST--
2MessageFormatter::format() invalid date/time argument
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8	die('skip intl extension not enabled');
9if (version_compare(INTL_ICU_VERSION, '4.8') < 0)
10	die('skip for ICU 4.8+');
11--FILE--
12<?php
13ini_set("intl.error_level", E_WARNING);
14
15$fmt = <<<EOD
16{foo,date}
17EOD;
18
19$mf = new MessageFormatter('en_US', $fmt);
20var_dump($mf->format(array("foo" => new stdclass())));
21
22--EXPECTF--
23Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCalendar and DateTime permitted) in %s on line %d
24
25Warning: MessageFormatter::format(): The argument for key 'foo' cannot be used as a date or time in %s on line %d
26bool(false)
27