|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-03-11 17:52 UTC] rasmus@php.net
-Status: Open
+Status: Feedback
[2013-03-11 17:52 UTC] rasmus@php.net
[2013-03-11 18:14 UTC] valentiny510 at yahoo dot es
[2013-03-13 03:56 UTC] rasmus@php.net
-Status: Feedback
+Status: Not a bug
[2013-03-13 03:56 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 18:00:01 2025 UTC |
Description: ------------ If I set the header(text/plain) and want to echo sha1/md5('something', true); the result header will be application/octet-stream replacing the actual header. With text/html it works correctly but I think it should work with plain text too. Test script: --------------- <?php header('Content-Type: text/plain; charset=UTF-8', true); echo 'something ', sha1('encoded', true), ' blabla'; Expected result: ---------------- something ¥d[¶wxÁG£³fÚRwÒTõÄè blabla Actual result: -------------- Content-Type replaced by application/octet-stream