xref: /PHP-8.2/ext/fileinfo/tests/bug79756.phpt (revision bd9f4fa6)
1--TEST--
2Bug #79756 (finfo_file crash (FILEINFO_MIME))
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7$filename = __DIR__ . '/bug79756.xls';
8$finfo = finfo_open(FILEINFO_MIME);
9$mime = finfo_file($finfo, $filename);
10finfo_close($finfo);
11echo $mime;
12?>
13--EXPECT--
14application/vnd.ms-excel; charset=binary
15