Req #54252 [Opn->Wfx]: Implement countLines() method for SplFileObject
| From: | cmb@php.net | Date: | Fri, 02 Jul 2021 15:24:12 +0000 |
| Subject: | Req #54252 [Opn->Wfx]: Implement countLines() method for SplFileObject | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234769@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54252&edit=1
ID: 54252
Updated by: cmb@php.net
Reported by: proofek at gmail dot com
Summary: Implement countLines() method for SplFileObject
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: SPL related
Operating System: n/a
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
From skimming the ML thread, this obviously is controversial, and
as such needs the RFC process[1]. Since there was no further
comment for more than ten years, I'm closing. Anybody who is
still interested in this feature, please pursue the RFC process.
[1] <https://wiki.php.net/rfc/howto>
Previous Comments:
------------------------------------------------------------------------
[2011-03-14 23:20:14] proofek at gmail dot com
Description:
------------
It'd be nice to have native support for counting lines in SplFileObject. At the
moment I have to go through the file line by line to count the lines. It's a real
pain.
Also see the discussion in the internal mailing list: http://marc.info/?l=php-
internals&m=129988577428035&w=2
I have attached a patch containing both countLines() method implementation and
phpt tests.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54252&edit=1