1--TEST-- 2Test finfo_open() function : variations in opening 3--SKIPIF-- 4<?php require_once(__DIR__ . '/skipif.inc'); ?> 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 *** 19resource(%d) of type (file_info) 20resource(%d) of type (file_info) 21