Bug #78655 [NoF->Nab]: Substitute character (^Z) in PDF breaks mime type detection

From: Date: Mon, 04 Nov 2019 09:16:27 +0000
Subject: Bug #78655 [NoF->Nab]: Substitute character (^Z) in PDF breaks mime type detection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223578@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78655&edit=1 ID: 78655 Updated by: cmb@php.net Reported by: dick at tellow dot nl Summary: Substitute character (^Z) in PDF breaks mime type detection -Status: No Feedback +Status: Not a bug Type: Bug -Package: *General Issues +Package: *Directory/Filesystem functions Operating System: macOS 10.15 PHP Version: 7.1.32 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > file broken.pdf > => broken.pdf: data So this looks like an upstream issue, and should reported to <https://bugs.astron.com/my_view_page.php>. Previous Comments: ------------------------------------------------------------------------ [2019-11-03 04:22:06] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2019-10-21 14:07:58] dick at tellow dot nl file broken.pdf => broken.pdf: data ------------------------------------------------------------------------ [2019-10-21 14:02:49] requinix@php.net @cmb means the file command run from the terminal. $ file broken.pdf ------------------------------------------------------------------------ [2019-10-21 08:06:34] dick at tellow dot nl var_dump(file('broken.pdf')) returns array(9) { [0]=> string(13) "%PDF-1.3 " [1]=> string(36) "%����������� " [2]=> string(9) "4 0 obj " [3]=> string(45) "<< /Length 2625 /Filter [ /FlateDecode ] >> " [4]=> string(8) "stream " [5]=> string(9) "x�� " [6]=> string(6) "Ug� " [7]=> string(1) " " [8]=> string(6) "%%EOF " } ------------------------------------------------------------------------ [2019-10-13 18:39:42] cmb@php.net What does file(1) report? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=78655 -- Edit this bug report at https://bugs.php.net/bug.php?id=78655&edit=1

« previous php.bugs (#223578) next »