Ask a Question related to PHP Development, Design and Development.
-
uwe dot beier at zf dot com #1
#26094 [NEW]: Filesize of downloaded file larger then the original file size
From: uwe dot beier at zf dot com
Operating system: WinXP Prof.
PHP version: 4.3.3
PHP Bug Type: IIS related
Bug description: Filesize of downloaded file larger then the original file size
Description:
------------
while downloading a file with the header function, the size of the
downloaded file is between 100 and 1000 bytes larger, than the original
file on the server.
PHP version is 4.3.3 and Webserver is IIS 5.0 (OS: WinXP). The same
problem occured with PHP 4.3.2 on an Apache 1.3.28 and was fixed by
updating PHP to version 4.3.3
There are no blank lines after the last line and there are no include
files or auto_prepend files.
Reproduce code:
---------------
<?PHP
$name="E:/ftpx/test/20031013_standards_proe.tgz";
$save_as_name = basename($name);
header("Cache-control: private");
header("Content-Type: application/octet-stream");
header("Content-Disposition: filename=$save_as_name");
header("Content-Transfer-Encoding: binary");
header("Content-length: " . filesize($name));
header("Pragma: public");
echo readfile($name);
?>
Expected result:
----------------
the original size is 158.994.464 Bytes, the downloaded file has
158.994.600 Bytes.
--
Edit bug report at [url]http://bugs.php.net/?id=26094&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26094&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26094&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26094&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26094&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26094&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26094&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26094&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26094&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26094&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26094&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26094&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26094&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26094&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26094&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26094&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26094&r=float[/url]
uwe dot beier at zf dot com Guest
-
PDF document displays larger than original. Why?
Run this little test. 1. Set up a document in any program, type "Test" in 48 pt. type 2. Generate a pdf file from that document. 3. Open the pdf... -
PDF is Larger than Original Word Document
I am working on a Mac G5 with Adobe Acrobat 7.0. I have a Word document that is 844 Kb. When i convert it to PDF, it becomes eight times larger! The... -
#26094 [Opn->Bgs]: Filesize of downloaded file larger then the original file size
ID: 26094 Updated by: sniper@php.net Reported By: uwe dot beier at zf dot com -Status: Open +Status: ... -
#26094 [Fbk->Opn]: Filesize of downloaded file larger then the original file size
ID: 26094 User updated by: uwe dot beier at zf dot com Reported By: uwe dot beier at zf dot com -Status: Feedback... -
#26094 [Opn->Fbk]: Filesize of downloaded file larger then the original file size
ID: 26094 Updated by: moriyoshi@php.net Reported By: uwe dot beier at zf dot com -Status: Open +Status: ...



Reply With Quote

