php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48006 [DE] fread() reads up to length bytes
Submitted: 2009-04-17 13:30 UTC Modified: 2010-05-05 15:40 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sd at sven-drieling dot de Assigned: sammywg (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-04-17 13:30 UTC] sd at sven-drieling dot de
Description:
------------
The .de documentation for fread() is wrong.


Reproduce code:
---------------
fread() liest length Bytes vom Dateizeiger handle . Das Lesen wird beendet, wenn length Bytes gelesen oder EOF (end of file bzw. Dateiende) erreicht wurde (was eben fr?her zutrifft).

Expected result:
----------------
fread() reads up to length bytes from the file pointer referenced by handle . Reading stops as soon as one of the following conditions is met: 

 - length bytes have been read 
 - EOF (end of file) is reached 
 - a packet becomes available (for network streams) 
 - 8192 bytes have been read (after opening userspace stream)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-05 15:29 UTC] simp@php.net
Automatic comment from SVN on behalf of simp
Revision: http://svn.php.net/viewvc/?view=revision&revision=299020
Log: Bug #48006 sync fread()-Documentation to EN
 [2010-05-05 15:40 UTC] simp@php.net
-Status: Assigned +Status: Closed
 [2010-05-05 15:40 UTC] simp@php.net
The documentation for this function has been updated to the latest version of the English documentation. Please allow for a couple of days for this change to be visible on the website.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC