source: src/router/php7/ext/fileinfo/tests/bug57547.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 579 bytes
Line 
1--TEST--
2Bug #57547 Settings options on file doesn't give same result as constructor options
3--SKIPIF--
4<?php
5if (!class_exists('finfo'))
6        die('skip no fileinfo extension');
7--FILE--
8<?php
9
10$filenames = array("..", __FILE__);
11
12foreach ($filenames as $filename) {
13        $finfo = new finfo(FILEINFO_MIME);
14        var_dump($finfo->file($filename));
15
16        $finfo2 = new finfo();
17        var_dump($finfo2->file($filename, FILEINFO_MIME));
18}
19
20?>
21===DONE===
22--EXPECT--
23string(9) "directory"
24string(9) "directory"
25string(28) "text/x-php; charset=us-ascii"
26string(28) "text/x-php; charset=us-ascii"
27===DONE===
Note: See TracBrowser for help on using the repository browser.