mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3'
* PHP-8.3: Fix GH-13344: finfo::buffer(): Failed identify data 0:(null)
This commit is contained in:
12
ext/fileinfo/tests/gh13344.phpt
Normal file
12
ext/fileinfo/tests/gh13344.phpt
Normal file
@@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
GH-13344 (finfo::buffer(): Failed identify data 0:(null))
|
||||
--EXTENSIONS--
|
||||
fileinfo
|
||||
--FILE--
|
||||
<?php
|
||||
$data = pack('H*','fffe000000099999');
|
||||
$mime_type = (new finfo(FILEINFO_MIME))->buffer($data);
|
||||
echo $mime_type;
|
||||
?>
|
||||
--EXPECT--
|
||||
application/octet-stream; charset=utf-32le
|
||||
Reference in New Issue
Block a user