mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This patch is a port of 1f5bea34 and adds a port for 5.43 based
branches. The related test is unchanged.
Signed-off-by: Anatol Belski <ab@php.net>
15 lines
251 B
PHP
15 lines
251 B
PHP
--TEST--
|
|
Bug GH-11891: fileinfo returns text/xml for some svg files
|
|
--EXTENSIONS--
|
|
fileinfo
|
|
--FILE--
|
|
<?php
|
|
var_dump(
|
|
(new \finfo(\FILEINFO_MIME_TYPE))->file(
|
|
__DIR__ . '/bug-gh11891.svg',
|
|
),
|
|
);
|
|
?>
|
|
--EXPECT--
|
|
string(13) "image/svg+xml"
|