Skip to content

Commit be34b96

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Fix phpGH-13344: finfo::buffer(): Failed identify data 0:(null)
2 parents b7c5813 + e71b597 commit be34b96

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/fileinfo/tests/gh13344.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
GH-13344 (finfo::buffer(): Failed identify data 0:(null))
3+
--EXTENSIONS--
4+
fileinfo
5+
--FILE--
6+
<?php
7+
$data = pack('H*','fffe000000099999');
8+
$mime_type = (new finfo(FILEINFO_MIME))->buffer($data);
9+
echo $mime_type;
10+
?>
11+
--EXPECT--
12+
application/octet-stream; charset=utf-32le

0 commit comments

Comments
 (0)