1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
--TEST--
Test fnmatch() function : warning filename or pattern exceeds maxpathlen
--SKIPIF--
<?php
if (!function_exists('fnmatch')) die('skip fnmatch() function is not available');
?>
--FILE--
<?php
$longstring = str_pad('blah', PHP_MAXPATHLEN);
var_dump(fnmatch('blah', $longstring));
var_dump(fnmatch($longstring, 'blah'));
?>
--EXPECTF--
Warning: fnmatch(): Filename exceeds the maximum allowed length of %d characters in %s on line %d
bool(false)
Warning: fnmatch(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d
bool(false)
|