1--TEST-- 2iconv_substr() charset parameter length checks (CVE-2007-4783) 3--EXTENSIONS-- 4iconv 5--FILE-- 6<?php 7$a = str_repeat('A', 99897); 8$b = str_repeat('/', 2798349); 9var_dump(iconv_substr($a, 0, 1, $b)); 10?> 11--EXPECTF-- 12Warning: iconv_substr(): Encoding parameter exceeds the maximum allowed length of 64 characters in %s on line %d 13bool(false) 14