Edit report at https://bugs.php.net/bug.php?id=66556&edit=1
ID: 66556
Updated by: ab@php.net
Reported by: oli dot laurel at arcor dot de
Summary: Readfile() + big file + slow download = 500, windows
server 2012, php 5.5.8
-Status: Open
+Status: Duplicate
Type: Bug
Package: IIS related
Operating System: Windows Server 2012
PHP Version: 5.5.8
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2014-07-08 08:33:52] ab@php.net
@oli, have you tried the suggestion from @jonas in bug #65453? That in the stack overflow link about
increasing activityTimeout. Gonna test it with his suggestion, too. Also, please lets continue to
use the original ticket.
Thanks.
------------------------------------------------------------------------
[2014-07-08 05:53:54] oli dot laurel at arcor dot de
Windows Server 2012 r2 + iis + php 5.5.14, Problem still exists
------------------------------------------------------------------------
[2014-02-07 16:00:49] cristina dot matos at gmail dot com
Hello there, was this issue ever resolved? I am having the same problem. I actually see the download
happening but the zip file is corrupted.
------------------------------------------------------------------------
[2014-01-22 21:41:51] oli dot laurel at arcor dot de
Description:
------------
hi,
sorry for open a new bug, but i can't reopen #65453.
problem still exist.
create files with following content:
[client, c:\tmp\wget.cmd]
"C:\Program Files (x86)\GnuWin32\bin\wget.exe" --limit-rate=20000 --server-response http://127.0.0.1/index.php
[server, d:\www\index.php]
<?php
$track = "movie.mpg";
if (file_exists($track)) {
header("Content-Type: audio/mpeg");
header('Content-Length: ' . filesize($track));
header('Content-Disposition: inline; filename="movie.mpg"');
header('X-Pad: avoid browser bug');
header('Cache-Control: no-cache');
readfile($track);
exit;
} else {
header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found', true, 404);
echo "no file";
}
?>
[server, d:\www\movie.mpg]
any file greater than 60mb
now start download by executing wget.cmd
effect: download will always be interrupted
os: windows server 2012 / windows server 2008R2
PHP: 5.5.8
Test script:
---------------
see top
Expected result:
----------------
download should not be interrupted
Actual result:
--------------
download will always be interrupted
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66556&edit=1