We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca12f6 commit 76703aeCopy full SHA for 76703ae
ext/standard/tests/file/fnmatch_maxpathlen.phpt
@@ -0,0 +1,18 @@
1
+--TEST--
2
+Test fnmatch() function : warning filename or pattern exceeds maxpathlen
3
+--SKIPIF--
4
+<?php
5
+if (!function_exists('fnmatch')) die('skip fnmatch() function is not available');
6
+?>
7
+--FILE--
8
9
+$longstring = str_pad('blah', PHP_MAXPATHLEN);
10
+var_dump(fnmatch('blah', $longstring));
11
+var_dump(fnmatch($longstring, 'blah'));
12
13
+--EXPECTF--
14
+Warning: fnmatch(): Filename exceeds the maximum allowed length of %d characters in %s on line %d
15
+bool(false)
16
+
17
+Warning: fnmatch(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d
18
0 commit comments