--TEST-- MessageFormatter::format() given negative arg key --EXTENSIONS-- intl --INI-- intl.use_exceptions=On --FILE-- format(array("foo" => 7, -1 => "bar"))); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } ?> --EXPECT-- IntlException: MessageFormatter::format(): Found negative or too large array key