#22546 [NEW]: fread (maybe in connection with fseek) do not read "length" bytes
| From: | 4u at direct-netware dot de | Date: | Wed, 05 Mar 2003 10:10:38 +0000 |
| Subject: | #22546 [NEW]: fread (maybe in connection with fseek) do not read "length" bytes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-34857@lists.php.net to get a copy of this message | ||
From: 4u at direct-netware dot de
Operating system: WinNT
PHP version: 4.3.1
PHP Bug Type: Filesystem function related
Bug description: fread (maybe in connection with fseek) do not read "length" bytes
>>> Description:
fread (maybe in connection with fseek) do not read "length" bytes -
example:
@fseek (Resource id #113,75);
@fread (Resource id #113,4633);
Read bytes reported by strlen: 5
@fseek (Resource id #113,4750);
@fread (Resource id #113,90);
Read bytes reported by strlen: 90
@fseek (Resource id #113,4881);
@fread (Resource id #113,5656);
Read bytes reported by strlen: 169
@fseek (Resource id #113,10593);
@fread (Resource id #113,5635);
Read bytes reported by strlen: 104
@fseek (Resource id #113,16282);
@fread (Resource id #113,1277);
Read bytes reported by strlen: 1277
@fseek (Resource id #113,17601);
@fread (Resource id #113,1415);
Read bytes reported by strlen: 283
@fseek (Resource id #113,19083);
@fread (Resource id #113,309);
Read bytes reported by strlen: 167
> Example part of the script:
@fseek ($zipp,$direct_tempdata_2array['zip_filebegin']);
$direct_tempdata_4string = @fread
($zipp,$direct_tempdata_2array['zip_filesize_compressed']);
>>> Modules:
Seems to be not required for this bug report
>>> Setup data:
Windows XP
PHP 4.3.1 and PHP 4.3.2-dev
Apache 2.0.44
MySQL 4.0.11-gamma
Administrative rights: yes
--
Edit bug report at http://bugs.php.net/?id=22546&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22546&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22546&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22546&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22546&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22546&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22546&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22546&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22546&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22546&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22546&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22546&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22546&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22546&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22546&r=gnused