1--TEST--
2iconv() charset parameter length checks (CVE-2007-4840)
3--EXTENSIONS--
4iconv
5--FILE--
6<?php
7$a = str_repeat("/", 9000000);
8var_dump(iconv($a, "b", "test"));
9var_dump(iconv("x", $a, "test"));
10?>
11--EXPECTF--
12Warning: iconv(): Encoding parameter exceeds the maximum allowed length of 64 characters in %s on line %d
13bool(false)
14
15Warning: iconv(): Encoding parameter exceeds the maximum allowed length of 64 characters in %s on line %d
16bool(false)
17