From: mascari at odarainternet dot com dot br
Operating system: Conectiva Linux 9.0
PHP version: 4.3.4
PHP Bug Type: Apache2 related
Bug description: The file upload has the increased size
Description:
------------
I am using Apache 2.0.48 and PHP 4.3.3 and how much I try to make upload
of file not text, the size of the file are increased.
Analyzing the content of the increased file, I perceived that all the
lines blank, marked for caracter "@" had been substituted by the posterior
content the lines blank.
PS: I tested to send an file using one scripts Perl that I have and the
file was sent correctly...
Reproduce code:
---------------
upload.htm:
<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'],"/tmp/".$_FILES['userfile']['name']))
{
echo "SUCCESSFULL";
} else {
echo "ERROR<br>";
print_r($_FILES);
}
--
Edit bug report at http://bugs.php.net/?id=26882&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26882&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26882&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26882&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26882&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26882&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26882&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26882&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26882&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26882&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26882&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26882&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26882&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26882&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26882&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26882&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26882&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26882&r=float