php-src/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt

13 lines
251 B
Plaintext
Raw Normal View History

2007-09-20 18:44:24 +00:00
--TEST--
dl() filename length checks (CVE-2007-4887)
2007-09-30 14:40:06 +00:00
--INI--
enable_dl=1
2007-09-20 18:44:24 +00:00
--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)