ID: 26647 Updated by: [EMAIL PROTECTED] Reported By: faraco dot phpbugs at mailnull dot com -Status: Open +Status: Feedback Bug Type: CGI related Operating System: Windows NT4 SP6 PHP Version: 4CVS, 5CVS (2004-12-29) New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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