php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26647 Intermittent upload crash in FastCGI mode
Submitted: 2003-12-17 06:55 UTC Modified: 2005-02-02 01:00 UTC
Votes:6
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:1 (20.0%)
From: faraco dot phpbugs at mailnull dot com Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 4CVS, 5CVS (2004-12-29) OS: Windows NT4 SP6
Private report: No CVE-ID: None
 [2003-12-17 06:55 UTC] 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);
}
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-10 05:45 UTC] 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.
 [2005-02-02 01:00 UTC] 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".
 [2009-07-13 20:15 UTC] litoka at gmail dot com
I have the same problem, sometimes work and sometimes throws me Page cannot be displayed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 14:01:30 2024 UTC