#26647 [Com]: Intermittent upload crash in FastCGI mode
| From: | litoka at gmail dot com | Date: | Mon, 13 Jul 2009 20:15:30 +0000 |
| Subject: | #26647 [Com]: Intermittent upload crash in FastCGI mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139703@lists.php.net to get a copy of this message | ||
ID: 26647
Comment by: litoka at gmail dot com
Reported By: faraco dot phpbugs at mailnull dot com
Status: No Feedback
Bug Type: CGI related
Operating System: Windows NT4 SP6
PHP Version: 4CVS, 5CVS (2004-12-29)
New Comment:
I have the same problem, sometimes work and sometimes throws me Page
cannot be displayed
Previous Comments:
------------------------------------------------------------------------
[2005-02-02 01:00:09] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-01-25 15:27:41] sniper@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