PHP 4.0 Bug #6075: fread OR fwrite bug

From: Date: Thu, 10 Aug 2000 19:29:35 +0000
Subject: PHP 4.0 Bug #6075: fread OR fwrite bug
Groups: php.dev 
Request: Send a blank email to php-dev+get-28370@lists.php.net to get a copy of this message
From: kijung@orangebank.co.kr Operating system: linux PHP version: 4.0.0 PHP Bug Type: Misbehaving function Bug description: fread OR fwrite bug /* Greetings!!! file size before implementing test14.php newmail.gif(915) -> file size after implementing test14.php newmail_out.gif(946) It operates correctly in php version 3.0. But, It oprerates incorrectly in php versin 4.0. and, if file type is *.txt, this program is operates correctly I thinks that fread() or fwrite() is problem. please, tell me solution of this problem. I don't know that i don't know. */ <? $filename1 = "newmail.gif"; $filename2 = "newmail_out.gif"; $fd1 = fopen($filename1,"rb"); $fd2 = fopen($filename2,"wb"); $data = fread($fd1, filesize($filename1)); fwrite($fd2, $data); fclose($fd1); fclose($fd2); ?>

« previous php.dev (#28370) next »