Return to dl-cve-2007-4887.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
v 5.4.20
--TEST-- dl() filename length checks (CVE-2007-4887) --SKIPIF-- <?php $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm'); if (!in_array(php_sapi_name(), $enabled_sapi)) { die('skip dl() is not enabled for ' . php_sapi_name()); } ?> --INI-- enable_dl=1 --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)