ID: 25784
Updated by: [EMAIL PROTECTED]
Reported By: kylewong at southa dot com
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: Redhat 9
PHP Version: 4.3.2
New Comment:
It should be obvious if just one server suffers from something like
this: there's something wrong with that server NOT PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-10-08 00:58:58] kylewong at southa dot com
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 this bug report at http://bugs.php.net/?id=25784&edit=1