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/fileinfo/tests/ |
files >> //php-7.1.11/ext/fileinfo/tests/finfo_file_regex.phpt |
--TEST-- Test finfo_file() function : regex rules --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> --FILE-- <?php /** * Works with the unix file command: * $ file -m magic resources/test.awk * resources/test.awk: awk script, ASCII text */ $magicFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'magic'; $finfo = finfo_open( FILEINFO_MIME, $magicFile ); echo "*** Testing finfo_file() : regex rules ***\n"; // Calling finfo_file() with all possible arguments $file = __DIR__ . '/resources/test.awk'; var_dump( finfo_file( $finfo, $file ) ); var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) ); ?> ===DONE=== --EXPECTF-- *** Testing finfo_file() : regex rules *** string(28) "text/plain; charset=us-ascii" string(30) "awk or perl script, ASCII text" ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`