Bug #11066: In the uploaded binary file all zero bytes are replaced by 0x20 (32)
| From: | korjenevsky at cplire dot ru | Date: | Wed, 23 May 2001 21:40:22 +0000 |
| Subject: | Bug #11066: In the uploaded binary file all zero bytes are replaced by 0x20 (32) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56545@lists.php.net to get a copy of this message | ||
From: korjenevsky@cplire.ru
Operating system: FreeBSD 4.0-RELEASE #6
PHP version: 4.0.4pl1
PHP Bug Type: HTTP related
Bug description: In the uploaded binary file all zero bytes are replaced by 0x20 (32)
Configure command:
'./configure' '--with-apache=../apache_1.3.14rusPL30.1'
'--enable-track-vars'
All default values in php.ini file.
Sample script:
<html><body>
<?
if(!isset($inputfile)){
$script=basename($PHP_SELF);
?>
<FORM ENCTYPE="multipart/form-data" ACTION="<?=$script?>"
METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="300000">
<INPUT NAME="inputfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Submit!">
</FORM>
<?
}
else{
move_uploaded_file($inputfile,"./uploaded.file");
echo "File is uploaded!";
}
?>
</body></html>
--
Edit Bug report at: http://bugs.php.net/?id=11066&edit=1