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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sd at sven-drieling dot de
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 04:01:38 2024 UTC