1--TEST-- 2iconv_strpos() charset parameter length checks (CVE-2007-4840) 3--SKIPIF-- 4<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?> 5--FILE-- 6<?php 7$a = str_repeat("/", 9000000); 8var_dump(iconv_strpos("a", "b", 0, $a)); 9?> 10--EXPECTF-- 11 12Warning: iconv_strpos(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d 13bool(false) 14