Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fileinfo returns text/xml for some svg files #11891

Closed
@ostrolucky

Description

@ostrolucky

Description

The following code:

<?phpecho (new \finfo(\FILEINFO_MIME_TYPE))->file('svgfile.svg');

Resulted in this output:

text/xml

But I expected this output instead:

image/svg+xml

Here are example files:
logo_beta
Logo_SMC

I've reported same bug forfile command line utility and they fixed it quickly:https://bugs.astron.com/view.php?id=470 (but I don't know how does the fix look like, I failed finding source code for their HEAD version)

PHP Version

8.2.8

Operating System

MacOS, Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp