blob: 48115479ec9f2e3b5b527126521780219258792e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
Bug #57547 Settings options on file doesn't give same result as constructor options
--SKIPIF--
<?php
if (!class_exists('finfo'))
die('skip no fileinfo extension');
--FILE--
<?php
$filenames = array("..", __FILE__);
foreach ($filenames as $filename) {
$finfo = new finfo(FILEINFO_MIME);
var_dump($finfo->file($filename));
$finfo2 = new finfo();
var_dump($finfo2->file($filename, FILEINFO_MIME));
}
?>
--EXPECT--
string(9) "directory"
string(9) "directory"
string(28) "text/x-php; charset=us-ascii"
string(28) "text/x-php; charset=us-ascii"
|