#43728 [Opn->Asn]: An addition to fread
| From: | kalle@php.net | Date: | Fri, 18 Apr 2008 10:06:07 +0000 |
| Subject: | #43728 [Opn->Asn]: An addition to fread | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-725@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: Open
+Status: Assigned
Bug Type: Documentation problem
Operating System: irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: kalle
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