php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/standard/tests/file/ |
files >> //php-7.1.11/ext/standard/tests/file/fnmatch_basic.phpt |
--TEST-- Test fnmatch() function: Basic functionality --SKIPIF-- <?php if (!function_exists('fnmatch')) die("skip fnmatch() function is not available"); ?> --FILE-- <?php /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] ) Description: fnmatch() checks if the passed string would match the given shell wildcard pattern. */ echo "*** Testing fnmatch() with file ***\n"; $file = basename(__FILE__); var_dump( fnmatch("*.php", $file) ); var_dump( fnmatch("*.p*p", $file) ); var_dump( fnmatch("*.p*", $file) ); var_dump( fnmatch("*", $file) ); var_dump( fnmatch("**", $file) ); var_dump( fnmatch("*.phpt", $file) ); echo "*** Testing fnmatch() with other than file ***\n"; var_dump( fnmatch(100, 100) ); var_dump( fnmatch("string", "string") ); var_dump( fnmatch(TRUE, TRUE) ); var_dump( fnmatch(FALSE, FALSE) ); var_dump( fnmatch(NULL, NULL) ); echo "\n*** Done ***\n"; ?> --EXPECT-- *** Testing fnmatch() with file *** bool(true) bool(true) bool(true) bool(true) bool(true) bool(false) *** Testing fnmatch() with other than file *** bool(true) bool(true) bool(true) bool(true) bool(true) *** Done ***y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`