add test for dl() with long name

This commit is contained in:
Stanislav Malyshev 2007-09-20 18:44:24 +00:00
parent 30dc58671d
commit cfd8f6d775

View file

@ -0,0 +1,10 @@
--TEST--
dl() filename length checks (CVE-2007-4887)
--FILE--
<?php
var_dump(dl(str_repeat("a", 8376757)));
?>
--EXPECTF--
Warning: dl(): File name exceeds the maximum allowed length of %d characters in %s on line %d
bool(false)