ID: 30405 Updated by: [EMAIL PROTECTED] -Summary: Error with file upload Reported By: joel at preacherboy dot net Status: Bogus Bug Type: Apache2 related -Operating System: SLES 8.0 zSeries s390 IBM +Operating System: Windows 2003 -PHP Version: 4.3.9RC3 +PHP Version: 5.0.2 Assigned To: jorton New Comment:
Fixing OS/Version/Summary here too. Previous Comments: ------------------------------------------------------------------------ [2004-10-21 10:29:26] [EMAIL PROTECTED] 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. This looks like a duplicate of bug 25570, please try the patch referenced there. ------------------------------------------------------------------------ [2004-10-20 21:15:32] aaron at gwmicro dot com I can consistenly reproduce this problem. [Wed Oct 20 14:08:43 2004] [notice] Parent: child process exited with status 4294967295 -- Restarting. Here's how we're duplicating it under Windows Server 2003, running Apache/2.0.52 (Win32) DAV/2 mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.1.0-dev: <? $filename = "c:\\demo\\demo.exe"; $fileInfo = stat($filename); $length = $fileInfo[7]; header("Content-Length: $length"); header("Content-Type:application/octet-stream"); header("Cache-Control: no-cache, must-revalidate"); header("Connection: close"); header("Content-Length: $length"); header("Content-Type:application/octet-stream"); header("Content-Disposition: inline; filename=demo.exe"); header("Pragma: no-cache"); $fh = fopen($filename, "rb"); while (!feof($fh)) { $buffer = fread($fh, 1024); print $buffer; } fclose($fh); header("Connection: close"); ?> The demo file is about 35MB, and if you cancel the download half-way through, you'll consistently get this error in the apache log, and the child restarting process will happen. The line right before the restart is: [Wed Oct 20 14:08:42 2004] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network I can duplicate this problem 100% of the time. ------------------------------------------------------------------------ [2004-10-12 23:24:44] joel at preacherboy dot net Here's what you'll see in the \log\error_log for Apache2: [Mon Oct 11 09:35:20 2004] [notice] Parent: child process exited with status 4294967295 -- Restarting. [Mon Oct 11 09:35:22 2004] [notice] Parent: Created child process 4004 [Mon Oct 11 09:35:22 2004] [notice] Disabled use of AcceptEx() WinSock2 API [Mon Oct 11 09:35:23 2004] [notice] Child 4004: Child process is running [Mon Oct 11 09:35:23 2004] [notice] Child 4004: Acquired the start mutex. [Mon Oct 11 09:35:23 2004] [notice] Child 4004: Starting 250 worker threads. [Mon Oct 11 09:35:23 2004] [notice] Child 4004: Listening on port 443. [Mon Oct 11 09:35:23 2004] [notice] Child 4004: Listening on port 80. [Mon Oct 11 09:35:23 2004] [notice] Child 4004: Listening on port 80. After some more time, the above will loop. I see 2 other people have voted that they are able to reproduce the issue. Is there anything else you need to regress the bug? ------------------------------------------------------------------------ [2004-10-12 16:26:44] joel at preacherboy dot net I can't think what else I would need to do in explaining how to regress this bug. It happens quite easily. Have you even tried my suggestions? Do you need something else like my httpd.conf to get started? This bug seems identical to what was mentioned in bug #25570. ------------------------------------------------------------------------ [2004-10-12 09:07:39] [EMAIL PROTECTED] I don't know what details I want, it's that Windows is simply impossible to debug. You'll have to come up with some really good pointers, otherwise we can just as well delete this bugreport. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30405 -- Edit this bug report at http://bugs.php.net/?id=30405&edit=1