#43728 [NEW]: An addition to fread

From: Date: Wed, 02 Jan 2008 10:09:39 +0000
Subject: #43728 [NEW]: An addition to fread
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-404@lists.php.net to get a copy of this message
From: rc at opelgt dot org Operating system: irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: An addition to fread 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 bug report at http://bugs.php.net/?id=43728&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43728&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43728&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43728&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43728&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43728&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43728&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43728&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43728&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43728&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43728&r=support Expected behavior: http://bugs.php.net/fix.php?id=43728&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43728&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43728&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43728&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43728&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43728&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43728&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43728&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43728&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43728&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43728&r=mysqlcfg

« previous php.doc.bugs (#404) next »