PHP 4.0 Bug #9468: fread stops reading
| From: | stock at cargo-partner dot com | Date: | Mon, 26 Feb 2001 19:40:36 +0000 |
| Subject: | PHP 4.0 Bug #9468: fread stops reading | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47577@lists.php.net to get a copy of this message | ||
From: stock@cargo-partner.com
Operating system: w2k
PHP version: 4.0.4
PHP Bug Type: Filesystem function related
Bug description: fread stops reading
i am using php 4.0.4 (build 20.12.2000) on w2k (build 2195)with iis5.
pls. note that fread function has a problem reading a binary file (*.zip) afer uploading.
fread stops after reading 389 bytes instead of reading the whole file using following code:
$filesize=filesize($path . "/" . $attachment_name);
$filenum=fopen($path . "/" . $attachment_name,"r");
$filestuff=fread($filenum,$filesize);
fclose($filenum);
pls. help
--
Edit Bug report at: http://bugs.php.net/?id=9468&edit=1