|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78075 finfo_file treats JSON file as text/plain
Submitted: 2019-05-27 11:47 UTC Modified: 2019-05-30 12:01 UTC
From: testmail dot team5 at gmail dot com Assigned: ab (profile)
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 7.2.18 OS: Windows 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: testmail dot team5 at gmail dot com
New email:
PHP Version: OS:


 [2019-05-27 11:47 UTC] testmail dot team5 at gmail dot com
finfo_file treats JSON file as text/plain

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-28 09:34 UTC]
Thanks for the report. This has been fixed in latest libmagic versions afaik, so stay tuned for 7.4 when the new libmagic port lands. Beyond that - json in the snippet is invalid.

 [2019-05-28 09:35 UTC]
-Assigned To: +Assigned To: ab
 [2019-05-30 12:01 UTC]
-Status: Assigned +Status: Closed
 [2019-05-30 12:01 UTC]
Fixed in 7.4. Please check the latest snapshots.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jun 20 08:01:24 2021 UTC