Bug #78075 [Opn]: finfo_file treats JSON file as text/plain

From: Date: Tue, 28 May 2019 09:34:57 +0000
Subject: Bug #78075 [Opn]: finfo_file treats JSON file as text/plain
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221023@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78075&edit=1 ID: 78075 Updated by: ab@php.net Reported by: testmail dot team5 at gmail dot com Summary: finfo_file treats JSON file as text/plain Status: Open Type: Bug Package: *Directory/Filesystem functions Operating System: Windows 10 PHP Version: 7.2.18 Block user comment: N Private report: N New Comment: 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. Thanks. Previous Comments: ------------------------------------------------------------------------ [2019-05-27 11:47:14] testmail dot team5 at gmail dot com Description: ------------ finfo_file treats JSON file as text/plain Test script: --------------- https://3v4l.org/iteti Expected result: ---------------- application/json Actual result: -------------- text/plain ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78075&edit=1

« previous php.bugs (#221023) next »