xref: /PHP-7.3/ext/fileinfo/tests/bug79756.phpt (revision 816b4c12)
1--TEST--
2Bug #79756 (finfo_file crash (FILEINFO_MIME))
3--SKIPIF--
4<?php
5if (!extension_loaded('fileinfo')) die('skip fileinfo extension not available');
6?>
7--FILE--
8<?php
9$filename = __DIR__ . '/bug79756.xls';
10$finfo = finfo_open(FILEINFO_MIME);
11$mime = finfo_file($finfo, $filename);
12finfo_close($finfo);
13echo $mime;
14?>
15--EXPECT--
16application/vnd.ms-excel; charset=binary
17