php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32822 filedownloading scripts stops sending data prematurely at 2.000.000 bytes
Submitted: 2005-04-25 10:41 UTC Modified: 2005-04-25 11:27 UTC
From: stian dot stryni at online dot no Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.0.4 OS: Fedora Core 2 2.6.9-1.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stian dot stryni at online dot no
New email:
PHP Version: OS:

 

 [2005-04-25 10:41 UTC] stian dot stryni at online dot no
Description:
------------
A script we use enabling users to download uploaded files from the webserver uses readfile() to accomplish this task.

At 2.000.000 bytes the script always stops sending output without any mention in any logs.

The behaviour started after upgrading from 5.0.3 to 5.0.4.

The system runs with default memory limit (not compiled with --enable-memory-limit) And changelog says nothing on this possible change of behaviour.

We do not use the outputbuffering system
We use session_start (as i have seen bugs reported on this earlier)

Reproduce code:
---------------
readfile(file larger than 2.000.000 bytes)


Expected result:
----------------
whole filecontent outputted.
Or some error if hitting some undocumented memorylimit

Actual result:
--------------
In browser:

no result.
no file downloaded
no messages to user or to server
server stops sending, but client doesn't honor that

Using wget:
a 2.000.000 byte truncated file

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-25 10:50 UTC] tony2001@php.net
Search the bug database before reporting.
It's bug #32553 and it's already fixed in CVS.
 [2005-04-25 10:51 UTC] stian dot stryni at online dot no
I cannot confirm that the filesize limit is exactly 2.000.000 bytes, but files that are larger than 1,9 MB will not work correctly on download.
 [2005-04-25 11:27 UTC] sniper@php.net
see above..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC