Closed (fixed)
Project:
Filestore2
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2005 at 15:28 UTC
Updated:
31 Oct 2005 at 12:01 UTC
System: Drupal 4.6.2 running on Windows 2003 IIS. with PHP 5.0.4
Download from filestore2/FSCache fails.
When downloading from the filestore2 block (Block Top 5 Files)
the download simply stops just before 2Mbyte.
Searching google say something about readfile() bug in PHP 5.0.4
Upload is OK, files larger than 2M byte is saved so it is not a php.ini problem.
Did not find any limitation in the settings.php or anywhere else.
Roger over and out
Niel
Comments
Comment #1
gordon commentedmaybe try increasing the max_execution_time this maybe what the problem is. Also can you please post the link to the 5.0.4 problem as it may have a method of getting around this.
Comment #2
niel-1 commentedSomehow it's not a timeout problem. Slow or fast links produce the same result.
The file stops downloading when the download size is over 1Mbyte and under 2Mbyte.
(The result is different every time)
Direct download (without FSCache) is no problem...
Any good idears?
Comment #3
m3avrck commentedYes this is a problem with PHP5, here is the work around code:
Link reference: http://bugs.php.net/bug.php?id=32970
Appears to be fixed in CVS, but can't determine if this is 5.0.5 or 5.1.
Comment #4
m3avrck commentedJust confirmed this with a main PHP developer, this bug is indeed fixed in 5.0.5 and the 5.1. As such, this problem only occurs for users who are using PHP 5.0 to 5.0.4 and I would suggest upgrading. This bug is now closed.
Comment #5
niel-1 commentedThank's the patch works great with 5.0.4