Bug #11066 Updated: In the uploaded binary file all zero bytes are replaced by 0x20 (32)

From: Date: Wed, 23 May 2001 23:38:06 +0000
Subject: Bug #11066 Updated: 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-56564@lists.php.net to get a copy of this message
ID: 11066 Updated by: sniper Reported By: korjenevsky@cplire.ru Old-Status: Open Status: Closed Bug Type: HTTP related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: Reopen if this happens with PHP 4.0.5 too.. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-05-23 17:40:22] korjenevsky@cplire.ru 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> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11066&edit=2

« previous php.dev (#56564) next »