#48006 [Opn->Asn]: [DE] fread() reads up to length bytes
| From: | kalle@php.net | Date: | Tue, 21 Apr 2009 08:51:24 +0000 |
| Subject: | #48006 [Opn->Asn]: [DE] fread() reads up to length bytes | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2132@lists.php.net to get a copy of this message | ||
ID: 48006
Updated by: kalle@php.net
-Summary: .de -- fread() reads up to length bytes
Reported By: sd at sven-drieling dot de
-Status: Open
+Status: Assigned
-Bug Type: Documentation problem
+Bug Type: Translation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: sammywg
Previous Comments:
------------------------------------------------------------------------
[2009-04-17 13:30:17] 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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48006&edit=1