Skip to content

finfo::buffer(): Failed identify data 0:(null) #13344

Closed
@P2T

Description

@P2T

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions