From: kylewong at southa dot com Operating system: Redhat 9 PHP version: 4.3.2 PHP Bug Type: HTTP related Bug description: really strange problem with file upload
Description: ------------ one of my webserver with apache 1.3.27/php 4.3.2 got a really strange problem. I found that SOME of my jpg files (very small size, around 200kb) can never upload to my webserver. I tried to upload many other files (doc, jpg, pdf, zip, etc. from 1kb to 10M in size) without any problem, but there is just several jpgs I can never get them upload. Whenever I try to upload those god damn jpg file, it seems to take very very long time to upload(but I can't see any temp file at /tmp) and eventually the target script will timeout. If I do some changes with the jpg file with a graphic editor, save it as another file, then the modified version of file can be uploaded successfully! I tried to upload from different locations, upgrade to 4.3.3RC1, rename the files, nothing help. PS. Only ONE of my webserver have this problem .... my other servers works very well with those strange jpg files! Reproduce code: --------------- upload form: <form enctype="multipart/form-data" action="hello.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="10000000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> hello.php <? echo $_FILES['userfile']['name']; echo "<br />"; echo $_FILES['userfile']['type']; echo "<br />"; echo $_FILES['userfile']['tmp_name']; echo "<br />"; echo $_FILES['userfile']['error']; echo "<br />"; ?> Expected result: ---------------- Most files will get upload successfully, but I have several strange jpg files will timeout "hello.php". This only happen with one of my webserver. -- Edit bug report at http://bugs.php.net/?id=25784&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25784&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25784&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25784&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25784&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25784&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25784&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25784&r=support Expected behavior: http://bugs.php.net/fix.php?id=25784&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25784&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25784&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25784&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25784&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25784&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25784&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25784&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25784&r=float