ID: 33458 Updated by: [EMAIL PROTECTED] Reported By: manuelva at uci dot cu -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: WindowsXP SP2 PHP Version: 5.0.4 New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #32553 (which was fixed 3 months ago). That's why we ask to test *latest* snapshots before reporting any issue. Previous Comments: ------------------------------------------------------------------------ [2005-06-24 04:12:23] manuelva at uci dot cu Description: ------------ Both fpassthru and readfile chop large file. Similar bugs are reported in PHP versions 5.0.1 (Closed, solved in a snapshot, bug #29801) 4.2.4-dev 4.1.1 But it seems it has been reintroduced now in 5.0.4. Reproduce code: --------------- // This file is 4mb large. $file = "pdf-letter-2.4.1.tar.bz2"; header('Content-type: application/*'); header('Content-length: '.filesize($file)); readfile($file); Expected result: ---------------- the whole file Actual result: -------------- about 1.9mb of the contents ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33458&edit=1