Bug #78655 [Fbk->NoF]: Substitute character (^Z) in PDF breaks mime type detection
| From: | php-bugs at lists dot php dot net | Date: | Sun, 03 Nov 2019 04:22:06 +0000 |
| Subject: | Bug #78655 [Fbk->NoF]: Substitute character (^Z) in PDF breaks mime type detection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223570@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: php-bugs@lists.php.net
Reported by: dick at tellow dot nl
Summary: Substitute character (^Z) in PDF breaks mime type
detection
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *General Issues
Operating System: macOS 10.15
PHP Version: 7.1.32
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
[2019-10-09 12:00:51] leeuwd at me dot com
Substitute character (https://en.wikipedia.org/wiki/Substitute_character): "In Unix operating
systems, this character is typically used to suspend the currently executing interactive
process"
Could be the culprit.
------------------------------------------------------------------------
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