1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/fileinfo/tests/bug-gh11891.phpt
Anatol Belski bd24c56207 fileinfo: Backport svg detection patch
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>
2023-09-30 18:22:14 +02:00

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"