1--TEST--
2iconv_mime_encode(): Encoding parameter exceeds the maximum allowed for preference "input-charset" and "output-charset"
3--EXTENSIONS--
4iconv
5--INI--
6iconv.internal_charset=iso-8859-1
7--FILE--
8<?php
9$extra = str_repeat("x", 256);
10
11$preferences = [
12    "input-charset" => "ISO-8859-1".$extra,
13    "output-charset" => "UTF-8",
14    "line-length" => 76,
15    "line-break-chars" => "\n",
16    "scheme" => "B"
17];
18
19$result = iconv_mime_encode("Subject", "Prüfung", $preferences);
20var_dump($result);
21
22$preferences["input-charset"] = "ISO-8859-1";
23$preferences["output-charset"] = "UTF-8".$extra;
24
25$result = iconv_mime_encode("Subject", "Prüfung", $preferences);
26var_dump($result);
27?>
28--EXPECTF--
29Warning: iconv_mime_encode(): Encoding parameter exceeds the maximum allowed length of %d characters in %s on line %d
30bool(false)
31
32Warning: iconv_mime_encode(): Encoding parameter exceeds the maximum allowed length of %d characters in %s on line %d
33bool(false)
34