|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-12 00:02 UTC] sniper@php.net
[2005-04-19 01:00 UTC] php-bugs at lists dot php dot net
[2005-04-19 14:49 UTC] kosuri dot s dot raju at chase dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 00:00:02 2025 UTC |
Description: ------------ Environment: Windows 2000, V5.0.2195 SP 4 Sun one Webserver 6.1 SP2 PHP 4.3.10 (cgi-fcgi) (built: Dec 14 2004 17:47:59) Using NSAPI MySQL Browser: IE6.0 When dowloading a file ( both text and Binary files ), an extra LF Character (0x0A) is always prepende to the output. This is only happening in the above environment. The data is stored properly on the MySql Server. Works OK on Windows XP , SP2 ( environment) Reproduce code: --------------- Sample Code: $inData = // Read Data from mySQL $ctype = "text/plain" ; // or like appilcation/msword header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-type: $ctype"); header( "Content-Disposition: attachment; filename=".$filenam ); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".$filesize); echo($inData); exit; Expected result: ---------------- The output should not contain additional LineFeed character at the start of output Actual result: -------------- <LF> --- This is Extra Linefeed ( 0x0A) BBBBB