|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63771 Implement SPL interfaces on Bitsets
Submitted: 2012-12-14 19:56 UTC Modified: 2017-10-24 03:26 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: harroyo at hangar18 dot cc Assigned: willfitch (profile)
Status: Assigned Package: Bitset (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: harroyo at hangar18 dot cc
New email:
PHP Version: OS:


 [2012-12-14 19:56 UTC] harroyo at hangar18 dot cc
It would be great if Bitset objects implement some common SPL interfaces.

Countable: returning size() or cardinality() for count() ?
ArrayAccess: so get()/set()/unset() can be accessed via the $bitset[index] / 
isset($bitset[index]) / unset($bitset[index]) syntax
IteratorAggregate?: so a ¿ArrayIterator? is returned (and it uses the ArrayAccess 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-14 20:00 UTC]
Thanks for your feedback.  I'll implement this in 2.0.1 beta.
 [2012-12-14 20:00 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: wfitch
 [2012-12-14 20:33 UTC]
-Assigned To: wfitch +Assigned To: willfitch
 [2012-12-18 21:19 UTC]
-Status: Assigned +Status: Verified
 [2017-10-24 03:26 UTC]
-Status: Verified +Status: Assigned
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Aug 21 20:01:27 2019 UTC