1--TEST-- 2iconv_substr() charset parameter length checks (CVE-2007-4783) 3--SKIPIF-- 4<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?> 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-- 12 13Warning: iconv_substr(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d 14bool(false) 15