#36289 [Opn->WFx]: SplFileObject needs fread()
| From: | helly@php.net | Date: | Sun, 05 Feb 2006 11:54:58 +0000 |
| Subject: | #36289 [Opn->WFx]: SplFileObject needs fread() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92928@lists.php.net to get a copy of this message | ||
ID: 36289
Updated by: helly@php.net
Reported By: robertpaul at gmail dot com
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: *
PHP Version: 5.1.2
-Assigned To:
+Assigned To: helly
New Comment:
SplFileObject is a line iterator, that is it reads the next line on
current() and friends. Introducing fread would mean one would need to
cound the '\n's after reading some bytes. That said it would be ok to
read the remainder as from the object since then valid() would return
true and the number of lines wouldn't matter. An alternative would be
allowing to skip line counting. However right now fread() in its
current forma does not make sense.
Previous Comments:
------------------------------------------------------------------------
[2006-02-05 00:32:23] robertpaul at gmail dot com
Description:
------------
Please forgive me if I'm missing something, but it seems as though
SplFileObject has most of the useful file functions except fread.
Having that available would be Really Good.
Thanks!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36289&edit=1