From:             stian dot stryni at online dot no
Operating system: Fedora Core 2 2.6.9-1.6
PHP version:      5.0.4
PHP Bug Type:     Reproducible crash
Bug description:  filedownloading scripts stops sending data prematurely at 
2.000.000 bytes

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

-- 
Edit bug report at http://bugs.php.net/?id=32822&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32822&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32822&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32822&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32822&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32822&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32822&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32822&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32822&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32822&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32822&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32822&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32822&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32822&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32822&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32822&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32822&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32822&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32822&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32822&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32822&r=mysqlcfg

Reply via email to