xref: /PHP-8.4/ext/fileinfo/tests/gh13344.phpt (revision c2b671cb)
1--TEST--
2GH-13344 (finfo::buffer(): Failed identify data 0:(null))
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7$data = pack('H*','fffe000000099999');
8$mime_type = (new finfo(FILEINFO_MIME))->buffer($data);
9echo $mime_type;
10?>
11--EXPECT--
12application/octet-stream; charset=utf-32le
13