#26647 [Fbk->Opn]: Intermittent upload crash in FastCGI mode
| From: | faraco dot phpbugs at mailnull dot com | Date: | Wed, 14 Apr 2004 14:03:40 +0000 |
| Subject: | #26647 [Fbk->Opn]: Intermittent upload crash in FastCGI mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58116@lists.php.net to get a copy of this message | ||
ID: 26647
User updated by: faraco dot phpbugs at mailnull dot com
Reported By: faraco dot phpbugs at mailnull dot com
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Windows NT4 SP6
PHP Version: 4CVS-2004-03-30
New Comment:
The problem persists.
Previous Comments:
------------------------------------------------------------------------
[2004-04-11 12:13:34] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2004-03-30 06:54:16] faraco dot phpbugs at mailnull dot com
The problem persists.
------------------------------------------------------------------------
[2004-03-28 19:53:22] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2004-02-10 05:45:37] faraco dot phpbugs at mailnull dot com
The problem persists.
This time I was able to identify that the error occurs more often when
the file size is over 50KB.
------------------------------------------------------------------------
[2003-12-17 06:55:55] faraco dot phpbugs at mailnull dot com
Description:
------------
When running PHP 4.3.4 (also 4.3.2) in FastCGI mode, the http upload of
files occasionally results on "Page Cannot Be Displayed".
Some comments:
1. The SAME file sometimes is uploaded successfully and sometimes is
not. So, no problems with MAX_FILE_SIZE (HTML script) or
UPLOAD_MAX_FILESIZE, POST_MAX_SIZE (PHP.INI) settings.
2. No problems with plain/text files uploads. These intermittent
problems seem to occur only with binary files.
3. On a manual test, in 60 seconds, the same requisition failed 8 times
and succeeded other 4.
Reproduce code:
---------------
up.html
-----------
<html><body>
<form action="upload.php" method="post"
enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="20971520">
<input name="userfile" type="file"><br>
<input type="submit" value="Send files">
</form>
</body></html>
upload.php
----------
<?
if(move_uploaded_file($_FILES['userfile']['tmp_name'],
"uploaded/".$_FILES['userfile']['name'])) {
echo "SUCCESSFULL";
} else {
echo "ERROR<br>";
print_r($_FILES);
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26647&edit=1