#43728 [Asn->Csd]: An addition to fread
| From: | kalle@php.net | Date: | Thu, 14 Aug 2008 10:14:51 +0000 |
| Subject: | #43728 [Asn->Csd]: An addition to fread | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1097@lists.php.net to get a copy of this message | ||
ID: 43728
Updated by: kalle@php.net
Reported By: rc at opelgt dot org
-Status: Assigned
+Status: Closed
Bug Type: Documentation problem
Operating System: irrelevant
PHP Version: Irrelevant
Assigned To: kalle
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2008-01-02 10:09:39] rc at opelgt dot org
Description:
------------
It would be nice when the description tells:
"Fread reads FROM THE CURRENT POSITION OF THE POINTER for length of
bytes."
Reproduce code:
---------------
<?php
$datei = 'test.txt';
$dh = fopen ($datei,"w");
fwrite($dh, '123');
fclose($dh);
$dh = fopen ($datei,"r");
echo 'content: '.fread($dh, filesize($datei)).'<br>';
// rewind($dh);
echo 'content: '.fread($dh, filesize($datei));
fclose($dh);
?>
Expected result:
----------------
content: 123
content: 123
Actual result:
--------------
content: 123
content:
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43728&edit=1