#21900 [Bgs->Fbk]: php upload malformed
| From: | sniper@php.net | Date: | Tue, 28 Jan 2003 00:56:50 +0000 |
| Subject: | #21900 [Bgs->Fbk]: php upload malformed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31399@lists.php.net to get a copy of this message | ||
ID: 21900
Updated by: sniper@php.net
Reported By: phpbugs@serial.nl
-Status: Bogus
+Status: Feedback
Bug Type: Apache2 related
Operating System: FreeBSD 4.7-Stable
PHP Version: 4.2.3
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
I can not reproduce this with PHP 4.3.1-dev (the latest stable
snapshot) and Apache 1.3.27 / Apache 2.0.44
Please give the snapshot a try.
Previous Comments:
------------------------------------------------------------------------
[2003-01-27 09:20:44] phpbugs@serial.nl
Bit fast to change the bug status to bogus, it's really there :
http://80.84.230.41/test/u.php
to view the image
http://80.84.230/41/test/test/<name of
file>
the only difference between machines is the amount of system memory.
------------------------------------------------------------------------
[2003-01-27 09:09:53] sniper@php.net
So what differences ARE there between these two machines?
Does not sound like any bug in PHP -> bogus.
------------------------------------------------------------------------
[2003-01-27 09:06:40] phpbugs@serial.nl
on a other machine using the same php/apache the script is working.
------------------------------------------------------------------------
[2003-01-27 08:54:38] 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
------------------------------------------------------------------------
[2003-01-27 08:32:57] phpbugs@serial.nl
Hello,
I have a strage problem with php 4.2.3 and apache 2.0.44, the latest
available versions in port tree of freebsd.
I'm using a standard php.ini.
The following occurs, when i upload a file using the following script
:
<form enctype="multipart/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Upload een foto: <input name="userfile" type="file">
<input name="submitknop" type="submit" value="Send File">
</form>
<?
if (!empty($_FILES))
{
move_uploaded_file
(
$_FILES['userfile']['tmp_name'],
'./test/'.$_FILES['userfile']['name']
);
}
?>
I get a malformed file ( http://e.serial.nl/fout.jpg )
Is there a solution ?
thanks
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21900&edit=1