Closed
Description
Description
The following code:
<?php
$data = pack('H*','fffe000000099999');
$mime_type = (new finfo(FILEINFO_MIME))->buffer($data);
Resulted in this output:
Warning: finfo::buffer(): Failed identify data 0:(null)
But I expected this output instead:
Something instead of '(null)'
PHP Version
PHP 8.3.2
Operating System
No response