1--TEST-- 2Test finfo_open() function : variations in opening 3--EXTENSIONS-- 4fileinfo 5--FILE-- 6<?php 7$magicFile = __DIR__ . DIRECTORY_SEPARATOR . 'magic'; 8 9echo "*** Testing finfo_open() : variations in opening ***\n"; 10 11// Calling finfo_open() with different options 12var_dump( finfo_open( FILEINFO_MIME | FILEINFO_SYMLINK, $magicFile ) ); 13//var_dump( finfo_open( FILEINFO_COMPRESS | FILEINFO_PRESERVE_ATIME, $magicFile ) ); 14var_dump( finfo_open( FILEINFO_DEVICES | FILEINFO_RAW, $magicFile ) ); 15 16?> 17--EXPECTF-- 18*** Testing finfo_open() : variations in opening *** 19object(finfo)#%d (0) { 20} 21object(finfo)#%d (0) { 22} 23