From: Pete Albrecht Date: Tue, 3 Oct 2017 21:39:22 +0000 (-0600) Subject: fnmatch error when pattern or filename too long X-Git-Tag: php-7.4.0alpha1~1097 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76703ae5a1c7d5532ca2bed9ebb18976f07cbe9d;p=php fnmatch error when pattern or filename too long i3logix PHP Testfest 2017 --- diff --git a/ext/standard/tests/file/fnmatch_maxpathlen.phpt b/ext/standard/tests/file/fnmatch_maxpathlen.phpt new file mode 100644 index 0000000000..849e7710bb --- /dev/null +++ b/ext/standard/tests/file/fnmatch_maxpathlen.phpt @@ -0,0 +1,18 @@ +--TEST-- +Test fnmatch() function : warning filename or pattern exceeds maxpathlen +--SKIPIF-- + +--FILE-- + +--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)