1--TEST--
2Test finfo_open() function : variations in opening
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7/* Prototype  : resource finfo_open([int options [, string arg]])
8 * Description: Create a new fileinfo resource.
9 * Source code: ext/fileinfo/fileinfo.c
10 * Alias to functions:
11 */
12
13$magicFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'magic';
14
15echo "*** Testing finfo_open() : variations in opening ***\n";
16
17// Calling finfo_open() with different options
18var_dump( finfo_open( FILEINFO_MIME | FILEINFO_SYMLINK, $magicFile ) );
19//var_dump( finfo_open( FILEINFO_COMPRESS | FILEINFO_PRESERVE_ATIME, $magicFile ) );
20var_dump( finfo_open( FILEINFO_DEVICES | FILEINFO_RAW, $magicFile ) );
21
22?>
23===DONE===
24--EXPECTF--
25*** Testing finfo_open() : variations in opening ***
26resource(%d) of type (file_info)
27resource(%d) of type (file_info)
28===DONE===
29