[php-src] Issue #13344: finfo::buffer(): Failed identify data 0:(null)
| From: | P2T | Date: | Tue, 06 Feb 2024 20:59:17 +0000 |
| Subject: | [php-src] Issue #13344: finfo::buffer(): Failed identify data 0:(null) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246424@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13344
Author: P2T
### Description
The following code:
```php
<?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_