Bug #78075 [Asn->Csd]: finfo_file treats JSON file as text/plain

From: Date: Thu, 30 May 2019 12:01:31 +0000
Subject: Bug #78075 [Asn->Csd]: finfo_file treats JSON file as text/plain
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221050@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: Assigned +Status: Closed Type: Bug Package: *Directory/Filesystem functions Operating System: Windows 10 PHP Version: 7.2.18 Assigned To: ab Block user comment: N Private report: N New Comment: Fixed in 7.4. Please check the latest snapshots. Thanks. Previous Comments: ------------------------------------------------------------------------ [2019-05-28 09:34:56] ab@php.net 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. ------------------------------------------------------------------------ [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 (#221050) next »