#34258 [Opn->Bgs]: Problems with download
| From: | derick@php.net | Date: | Fri, 26 Aug 2005 06:56:39 +0000 |
| Subject: | #34258 [Opn->Bgs]: Problems with download | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84011@lists.php.net to get a copy of this message | ||
ID: 34258
Updated by: derick@php.net
Reported By: sillva at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Linux 2.4
PHP Version: 4.4.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2005-08-25 21:44:22] sillva at gmail dot com
Description:
------------
Hi,
I think know a bug in php, i have an file in folder
(/home/user/file/file.ext), when i try download (with my script), the
php insert a "\n" at start of the file.
I try to remove the \n, dont resolve the problem.
I'm sorry for my bad english. If this is not bug ... sorry ... i try
find a solution in the google but not happen.
Reproduce code:
---------------
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: $ctype");
header("Content-Disposition: attachment;
filename=\"".$nm_layout."\";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$tm_layout);
set_time_limit(0);
readerfile($bn_layout);
/* the variables have a value, the download is finished and all the
content of the file is correct, but the "\n" broken the file */
Expected result:
----------------
Correct file content
Actual result:
--------------
Correct file content but with "\n" at start.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34258&edit=1